New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong math in Int + Int #2157
Labels
BLOCKER
Preventing the next release of rakudo, or just needing attention before the release
math
regression
Issue did not exist previously
Comments
|
Strangely, the problem doesn't occur if I rip out the nqp guts used and use them directly: |
|
Looks like bisection isn't quite the full story. In pure NQP, same problem exists: |
|
Seems like it's related to Raku/nqp#363. My WIP NQP branch that switches to using int behavior by default doesn't have this problem. |
zoffixznet
added a commit
that referenced
this issue
Aug 1, 2018
Fixes R#2157 #2157 The cause of the bug is NQP apparently uses doubles to handle its ints[^1]. 2**52 is the limit under which every number is representable in a double, which is why when we bumped up[^2] the point at which we switched to bigints in Rakudo to be over that limit, we brought in the NQP's limitation into Perl 6 land. Fix by dialing down the switch to bigint to occur before we go over the 2**52 limit. The NQP Issue[^1] will resolve the problem in NQP land and once that's done, I presume we can bump up the limit in rakudo once again. [1] N#363 Raku/nqp#363 [2] b61b3c7
zoffixznet
added a commit
to Raku/roast
that referenced
this issue
Aug 1, 2018
Part of cover for R#2157 rakudo/rakudo#2157
ugexe
pushed a commit
to Raku/roast
that referenced
this issue
Dec 15, 2018
Closes rakudo/rakudo#2157 R#2157 Rakudo fix: rakudo/rakudo@fec1bd74f9
ugexe
pushed a commit
to Raku/roast
that referenced
this issue
Dec 15, 2018
Part of cover for R#2157 rakudo/rakudo#2157
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
BLOCKER
Preventing the next release of rakudo, or just needing attention before the release
math
regression
Issue did not exist previously
Result should be 9930972392403502
Bisects to b61b3c7The problem is present on both 64-bit and 32-bit systems
The text was updated successfully, but these errors were encountered: