diff options
author | Stanislav Malyshev <stas@php.net> | 2013-08-04 18:04:45 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2013-08-04 18:04:45 -0700 |
commit | e4f9619fada2f14a8d4e069356bffa820a1a34e3 (patch) | |
tree | c0de9d6e4ee0cc3ece4c2041bc32b73c48234c98 | |
parent | c793a6569013f9ab46f2cd7331cc1a04aa42cbed (diff) | |
download | php-git-e4f9619fada2f14a8d4e069356bffa820a1a34e3.tar.gz |
fix compiler warning, use longs for hashes
-rw-r--r-- | ext/spl/php_spl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index a5ffdb7d14..716990d80f 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); |