Skip to content

Commit 8e99db3

Browse files
committed
use Number.MIN_SAFE_INTEGER according to FireFox
Fix #1081
1 parent a6e6ee2 commit 8e99db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Basics.elm

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ infix right 9 (>>) = composeR
103103
104104
**Note:** `Int` math is well-defined in the range `-2^31` to `2^31 - 1`. Outside
105105
of that range, the behavior is determined by the compilation target. When
106-
generating JavaScript, the safe range expands to `-2^53` to `2^53 - 1` for some
106+
generating JavaScript, the safe range expands to `-(2^53 - 1)` to `2^53 - 1` for some
107107
operations, but if we generate WebAssembly some day, we would do the traditional
108108
[integer overflow][io]. This quirk is necessary to get good performance on
109109
quirky compilation targets.

0 commit comments

Comments
 (0)