[Intl] Fix int32 min boundary check

This commit is contained in:
Nicolas Grekas 2016-04-01 08:34:33 +02:00
parent c3f0bfe36b
commit f29476e514

View File

@ -851,7 +851,7 @@ class NumberFormatter
return false;
}
if (PHP_INT_SIZE !== 8 && ($value > self::$int32Max || $value <= -self::$int32Max - 1)) {
if (PHP_INT_SIZE !== 8 && ($value > self::$int32Max || $value < -self::$int32Max - 1)) {
return (float) $value;
}