Skip to content

Commit e4f9619

Browse files
committed
fix compiler warning, use longs for hashes
1 parent c793a65 commit e4f9619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/spl/php_spl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ PHPAPI void php_spl_object_hash(zval *obj, char *result TSRMLS_DC) /* {{{*/
800800
hash_handle = SPL_G(hash_mask_handle)^(intptr_t)Z_OBJ_HANDLE_P(obj);
801801
hash_handlers = SPL_G(hash_mask_handlers)^(intptr_t)Z_OBJ_HT_P(obj);
802802

803-
spprintf(&hex, 32, "%016x%016x", hash_handle, hash_handlers);
803+
spprintf(&hex, 32, "%016lx%016lx", hash_handle, hash_handlers);
804804

805805
strlcpy(result, hex, 33);
806806
efree(hex);

0 commit comments

Comments
 (0)