Skip to content

Commit 79354ba

Browse files
committed
fix integral constant overflow warning
as it's promoted to size_t when passed to ZEND_CALL_ARG
1 parent 12ce17c commit 79354ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ struct _zend_execute_data {
433433
(call)->This.u2.num_args
434434

435435
#define ZEND_CALL_FRAME_SLOT \
436-
((ZEND_MM_ALIGNED_SIZE(sizeof(zend_execute_data)) + ZEND_MM_ALIGNED_SIZE(sizeof(zval)) - 1) / ZEND_MM_ALIGNED_SIZE(sizeof(zval)))
436+
((int)((ZEND_MM_ALIGNED_SIZE(sizeof(zend_execute_data)) + ZEND_MM_ALIGNED_SIZE(sizeof(zval)) - 1) / ZEND_MM_ALIGNED_SIZE(sizeof(zval))))
437437

438438
#define ZEND_CALL_VAR(call, n) \
439439
((zval*)(((char*)(call)) + ((int)(n))))

0 commit comments

Comments
 (0)