summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-12-17 16:45:35 +0100
committerAnatol Belski <ab@php.net>2014-12-17 16:47:05 +0100
commit79354ba6d0d6a1a4596f9ac66ee9bc3a34ed972b (patch)
treeba3e26a0a65a79013e1da5726ce7952a93e4e854
parent12ce17c47ecfea24dd7a83ff381b2f9c22967bf0 (diff)
downloadphp-git-PRE_NATIVE_TLS_MERGE.tar.gz
fix integral constant overflow warningPRE_NATIVE_TLS_MERGE
as it's promoted to size_t when passed to ZEND_CALL_ARG
-rw-r--r--Zend/zend_compile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 3b1e046cc0..150d09a692 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -433,7 +433,7 @@ struct _zend_execute_data {
(call)->This.u2.num_args
#define ZEND_CALL_FRAME_SLOT \
- ((ZEND_MM_ALIGNED_SIZE(sizeof(zend_execute_data)) + ZEND_MM_ALIGNED_SIZE(sizeof(zval)) - 1) / ZEND_MM_ALIGNED_SIZE(sizeof(zval)))
+ ((int)((ZEND_MM_ALIGNED_SIZE(sizeof(zend_execute_data)) + ZEND_MM_ALIGNED_SIZE(sizeof(zval)) - 1) / ZEND_MM_ALIGNED_SIZE(sizeof(zval))))
#define ZEND_CALL_VAR(call, n) \
((zval*)(((char*)(call)) + ((int)(n))))