Skip to content

Commit 3d43761

Browse files
committed
ext/opcache/jit/zend_jit_internal: zend_jit_hash() returns unsigned
A negative hash value is not useful for anything, but can cause harm if not used correctly.
1 parent 27154ec commit 3d43761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ extern int zend_jit_profile_counter_rid;
243243

244244
/* Hot Counters */
245245

246-
static zend_always_inline zend_long zend_jit_hash(const void *ptr)
246+
static zend_always_inline zend_ulong zend_jit_hash(const void *ptr)
247247
{
248248
uintptr_t x;
249249

0 commit comments

Comments
 (0)