Merged PR 785 - Fixed ZEND_INT_(MIN/MAX) constants in signed multiplication

ZEND_INT_MIN and ZEND_INT_MAX should be ZEND_LONG_MIN and ZEND_LONG_MAX respectively.
This commit is contained in:
Tjerk Meesters 2014-08-28 08:33:18 +08:00
commit 6954bd4ff6

View File

@ -85,7 +85,7 @@
#define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
zend_long64 __result = (zend_long64) (a) * (zend_long64) (b); \
if (__result > ZEND_INT_MAX || __result < ZEND_INT_MIN) { \
if (__result > ZEND_LONG_MAX || __result < ZEND_LONG_MIN) { \
(dval) = (double) __result; \
(usedval) = 1; \
} else { \