summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTjerk Meesters <datibbaw@php.net>2014-08-28 08:33:18 +0800
committerTjerk Meesters <datibbaw@php.net>2014-08-28 08:33:18 +0800
commit6954bd4ff68d2421a6555c792a0db96896ec515a (patch)
treed682c6c8da80dc0a4d04cfb9e1b3d70e334419a9
parentf2b0370193634be95b9e04af723e2e97b5406ef3 (diff)
parente622e28972930bacadd3d02fc08ef2fb0eb32efa (diff)
downloadphp-git-6954bd4ff68d2421a6555c792a0db96896ec515a.tar.gz
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.
-rw-r--r--Zend/zend_multiply.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_multiply.h b/Zend/zend_multiply.h
index 3a1a091b0a..11744c2699 100644
--- a/Zend/zend_multiply.h
+++ b/Zend/zend_multiply.h
@@ -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 { \