]> granicus.if.org Git - php/commitdiff
fix compiler warning, use longs for hashes
authorStanislav Malyshev <stas@php.net>
Mon, 5 Aug 2013 01:04:45 +0000 (18:04 -0700)
committerStanislav Malyshev <stas@php.net>
Mon, 5 Aug 2013 01:04:45 +0000 (18:04 -0700)
ext/spl/php_spl.c

index a5ffdb7d14037258f51bd285f0167a343cdaa64a..716990d80f02a8285fff315fdaf236e054e6b38d 100644 (file)
@@ -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);