mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
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:
commit
6954bd4ff6
@ -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 { \
|
||||
|
Loading…
Reference in New Issue
Block a user