com php-src: fix integral constant overflow warning: Zend/zend_compile.h
| From: | Anatol Belski | Date: | Wed, 17 Dec 2014 15:47:05 +0000 |
| Subject: | com php-src: fix integral constant overflow warning: Zend/zend_compile.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83787@lists.php.net to get a copy of this message | ||
Commit: 79354ba6d0d6a1a4596f9ac66ee9bc3a34ed972b
Author: Anatol Belski <ab@php.net> Wed, 17 Dec 2014 16:45:35 +0100
Parents: 12ce17c47ecfea24dd7a83ff381b2f9c22967bf0
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=79354ba6d0d6a1a4596f9ac66ee9bc3a34ed972b
Log:
fix integral constant overflow warning
as it's promoted to size_t when passed to ZEND_CALL_ARG
Changed paths:
M Zend/zend_compile.h
Diff:
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 3b1e046..150d09a 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))))