Skip to content

Commit

Permalink
fix compiler warning, use longs for hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Aug 5, 2013
1 parent c793a65 commit e4f9619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/spl/php_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e4f9619

Please sign in to comment.