com php-src: fix compiler warning, use longs for hashes: ext/spl/php_spl.c
| From: | Stanislav Malyshev | Date: | Mon, 05 Aug 2013 01:04:45 +0000 |
| Subject: | com php-src: fix compiler warning, use longs for hashes: ext/spl/php_spl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72824@lists.php.net to get a copy of this message | ||
Commit: e4f9619fada2f14a8d4e069356bffa820a1a34e3
Author: Stanislav Malyshev <stas@php.net> Sun, 4 Aug 2013 18:04:45 -0700
Parents: c793a6569013f9ab46f2cd7331cc1a04aa42cbed
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e4f9619fada2f14a8d4e069356bffa820a1a34e3
Log:
fix compiler warning, use longs for hashes
Changed paths:
M ext/spl/php_spl.c
Diff:
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index a5ffdb7..716990d 100644
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -800,7 +800,7 @@ PHPAPI void php_spl_object_hash(zval *obj, char *result TSRMLS_DC) /* {{{*/
hash_handle = SPL_G(hash_mask_handle)^(intptr_t)Z_OBJ_HANDLE_P(obj);
hash_handlers = SPL_G(hash_mask_handlers)^(intptr_t)Z_OBJ_HT_P(obj);
- spprintf(&hex, 32, "%016x%016x", hash_handle, hash_handlers);
+ spprintf(&hex, 32, "%016lx%016lx", hash_handle, hash_handlers);
strlcpy(result, hex, 33);
efree(hex);