Skip to content

Commit 8ab1f6b

Browse files
committed
Fixed JIT memory usage debug info (opcache.jit_debug=0x200)
1 parent dbd0bfc commit 8ab1f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4407,7 +4407,7 @@ ZEND_EXT_API int zend_jit_startup(void *buf, size_t size, bool reattached)
44074407
ZEND_EXT_API void zend_jit_shutdown(void)
44084408
{
44094409
if (JIT_G(debug) & ZEND_JIT_DEBUG_SIZE) {
4410-
fprintf(stderr, "\nJIT memory usage: %td\n", (char*)*dasm_ptr - (char*)dasm_buf);
4410+
fprintf(stderr, "\nJIT memory usage: %td\n", (ptrdiff_t)((char*)*dasm_ptr - (char*)dasm_buf));
44114411
}
44124412

44134413
#ifdef HAVE_OPROFILE

0 commit comments

Comments
 (0)