]> granicus.if.org Git - php/commitdiff
Fix compiler warning.
authorIlia Alshanetsky <iliaa@php.net>
Thu, 30 Jan 2003 22:37:50 +0000 (22:37 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 30 Jan 2003 22:37:50 +0000 (22:37 +0000)
ext/session/session.c

index 0b9dcf7eb4a218424b9409fe6d522328107abf01..6ea35e282122c35621fb1118ed293ca986bc9156 100644 (file)
@@ -678,7 +678,7 @@ char *php_session_create_id(PS_CREATE_SID_ARGS)
 
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "The ini setting hash_bits_per_character is out of range (should be 4, 5, or 6) - using 4 for now");
        }
-       j = bin_to_readable(digest, digest_len, buf, PS(hash_bits_per_character)) - buf;
+       j = (int) (bin_to_readable(digest, digest_len, buf, PS(hash_bits_per_character)) - buf);
        
        if (newlen) 
                *newlen = j;