From: Pierre Joye Date: Wed, 2 Jun 2010 19:20:04 +0000 (+0000) Subject: - silent warning X-Git-Tag: php-5.4.0alpha1~191^2~1355 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fd5a6a188932312857a0dc57b994e2366bbca35;p=php - silent warning --- diff --git a/ext/session/session.c b/ext/session/session.c index ad406d857c..289efa9493 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -382,8 +382,8 @@ PHPAPI 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"); } - outid = emalloc((digest_len + 2) * ((8.0f / PS(hash_bits_per_character)) + 0.5)); - j = (int) (bin_to_readable((char *)digest, digest_len, outid, PS(hash_bits_per_character)) - outid); + outid = emalloc((size_t)((digest_len + 2) * ((8.0f / PS(hash_bits_per_character)) + 0.5))); + j = (int) (bin_to_readable((char *)digest, digest_len, outid, (char)PS(hash_bits_per_character)) - outid); efree(digest); if (newlen) {