cvs: php4 /ext/session session.c
| From: | Ilia Alshanetsky | Date: | Thu, 30 Jan 2003 22:37:51 +0000 |
| Subject: | cvs: php4 /ext/session session.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18311@lists.php.net to get a copy of this message | ||
iliaa Thu Jan 30 17:37:51 2003 EDT
Modified files:
/php4/ext/session session.c
Log:
Fix compiler warning.
Index: php4/ext/session/session.c
diff -u php4/ext/session/session.c:1.349 php4/ext/session/session.c:1.350
--- php4/ext/session/session.c:1.349 Fri Jan 24 18:57:32 2003
+++ php4/ext/session/session.c Thu Jan 30 17:37:50 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: session.c,v 1.349 2003/01/24 23:57:32 sas Exp $ */
+/* $Id: session.c,v 1.350 2003/01/30 22:37:50 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -678,7 +678,7 @@
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;