Skip to content

Commit ee2d7f3

Browse files
committed
Remove unnecessary cast
1 parent 70683ae commit ee2d7f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎ext/opcache/jit/tls/zend_jit_tls_x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ zend_result zend_jit_resolve_tsrm_ls_cache_offsets(
162162
dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET);
163163
void *addr = (void*)(((dtv_pointer_t*)((char*)dtv + *module_index))->val + *module_offset);
164164

165-
ZEND_ASSERT((void*)addr == &_tsrm_ls_cache);
165+
ZEND_ASSERT(addr == &_tsrm_ls_cache);
166166
# endif
167167

168168
zend_accel_error(ACCEL_LOG_DEBUG, "dynamic tls module idx %zu offset %zu (inferred from code)\n",

‎ext/opcache/jit/tls/zend_jit_tls_x86_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ zend_result zend_jit_resolve_tsrm_ls_cache_offsets(
146146
dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET);
147147
addr = (void*)(((dtv_pointer_t*)((char*)dtv + *module_index))->val + *module_offset);
148148

149-
ZEND_ASSERT((void*)addr == &_tsrm_ls_cache);
149+
ZEND_ASSERT(addr == &_tsrm_ls_cache);
150150
# endif
151151

152152
zend_accel_error(ACCEL_LOG_DEBUG, "dynamic tls module idx %zu offset %zu (inferred from code)\n",

0 commit comments

Comments
 (0)