Skip to content

Commit

Permalink
use Number.MIN_SAFE_INTEGER according to FireFox
Browse files Browse the repository at this point in the history
  • Loading branch information
evancz committed Feb 9, 2021
1 parent a6e6ee2 commit 8e99db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Basics.elm
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ infix right 9 (>>) = composeR
**Note:** `Int` math is well-defined in the range `-2^31` to `2^31 - 1`. Outside
of that range, the behavior is determined by the compilation target. When
generating JavaScript, the safe range expands to `-2^53` to `2^53 - 1` for some
generating JavaScript, the safe range expands to `-(2^53 - 1)` to `2^53 - 1` for some
operations, but if we generate WebAssembly some day, we would do the traditional
[integer overflow][io]. This quirk is necessary to get good performance on
quirky compilation targets.
Expand Down

0 comments on commit 8e99db3

Please sign in to comment.