From 242a9a47c7771febfd92d6e61b0c897d3060f12f Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 30 Jan 2003 22:37:50 +0000 Subject: [PATCH] Fix compiler warning. --- ext/session/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0