From: Ilia Alshanetsky Date: Thu, 30 Jan 2003 22:37:50 +0000 (+0000) Subject: Fix compiler warning. X-Git-Tag: RELEASE_0_5~1357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=242a9a47c7771febfd92d6e61b0c897d3060f12f;p=php Fix compiler warning. --- diff --git a/ext/session/session.c b/ext/session/session.c index 0b9dcf7eb4..6ea35e2821 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -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;