From 855272f691272eb63bd5e0cc769947b16354de23 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Sun, 22 Mar 2020 22:22:08 +0100 Subject: [PATCH] Fix build failure for macos --- ext/opcache/jit/zend_jit_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit_internal.h b/ext/opcache/jit/zend_jit_internal.h index 4a71ff58f5e22..a330170f24f38 100644 --- a/ext/opcache/jit/zend_jit_internal.h +++ b/ext/opcache/jit/zend_jit_internal.h @@ -352,7 +352,7 @@ struct _zend_jit_trace_stack_frame { _frame->call = NULL; \ _frame->prev = NULL; \ _frame->func = (const zend_function*)_func; \ - _frame->_info = (uint32_t)((((int)(num_args)) << TRACE_FRAME_SHIFT_NUM_ARGS) & TRACE_FRAME_MASK_NUM_ARGS); \ + _frame->_info = (uint32_t)((((unsigned int)(num_args)) << TRACE_FRAME_SHIFT_NUM_ARGS) & TRACE_FRAME_MASK_NUM_ARGS); \ if (nested) { \ _frame->_info |= TRACE_FRAME_MASK_NESTED; \ }; \