Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not force 32 bits in JS math operations
The "n | 0" is a hack to truncate numbers, but it forces n to 32 bits, which is inconsistent with the expected precision of 54 integer bits using the JS backend. For example, truncate(2147483648) yields -2147483648 (negative), and similarly, 21474836481 // 10 yields -2147483648.
- Loading branch information