8000 bug #18399 [Intl] Fix int32 min boundary check (nicolas-grekas) · symfony/symfony@42dd362 · GitHub
[go: up one dir, main page]

Skip to content

Commit 42dd362

Browse files
bug #18399 [Intl] Fix int32 min boundary check (nicolas-grekas)
This PR was merged into the 3.0 branch. Discussion ---------- [Intl] Fix int32 min boundary check | Q | A | ------------- | --- | Branch? | 3.0 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This is the right fix, introduced in a bad merge. Commits ------- f29476e [Intl] Fix int32 min boundary check
2 parents c3f0bfe + f29476e commit 42dd362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line ch 6BA0 ange
@@ -851,7 +851,7 @@ private function getInt64Value($value)
851851
return false;
852852
}
853853

854-
if (PHP_INT_SIZE !== 8 && ($value > self::$int32Max || $value <= -self::$int32Max - 1)) {
854+
if (PHP_INT_SIZE !== 8 && ($value > self::$int32Max || $value < -self::$int32Max - 1)) {
855855
return (float) $value;
856856
}
857857

0 commit comments

Comments
 (0)
0