diff options
author | Pierre Joye <pajoye@php.net> | 2010-06-02 19:20:04 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-06-02 19:20:04 +0000 |
commit | 24ef65019f4ee82f5d07f07e47e91fa9a446c082 (patch) | |
tree | 07228bf33fbc4467edb4a1780faa6b600c95a554 /ext/session | |
parent | c453a8fcdaff85ec3f6023cb02136ab59a5d6dae (diff) | |
download | php-git-24ef65019f4ee82f5d07f07e47e91fa9a446c082.tar.gz |
- silent warning
Diffstat (limited to 'ext/session')
-rw-r--r-- | ext/session/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 0debe75ae3..dac8e954b7 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -456,8 +456,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) { |