%% fails with bigInt, bigInt arguments #1640
Labels
regression
Issue did not exist previously
tests needed
Issue is generally resolved but tests were not written yet
The Problem
It seems that %% (is divisible by) lost it's bigInt, bigInt candidate sometime in the past year. It used to work, the last time I actively used it was in Rakudo 2016.10.
See Rosettacode task: http://rosettacode.org/wiki/Tonelli-Shanks_algorithm#Perl_6
Expected Behavior
perl6 -e' say 23067200747291880127814827277075079921671259751791 %% 100000000000000000000000000000000000000000000000577;'
should return False.
Actual Behavior
perl6 -e' say 23067200747291880127814827277075079921671259751791 %% 100000000000000000000000000000000000000000000000577;'
Returns:
Cannot unbox 164 bit wide bigint into native integer
in block at -e line 1
Steps to Reproduce
Run:
perl6 -e' say 23067200747291880127814827277075079921671259751791 %% 100000000000000000000000000000000000000000000000577;'
See output from bisectable: https://gist.github.com/0c0a04c16226bb81175a5bdee18ad4b8
Which points to commit: 755e25b
Environment
perl6 -v): This is Rakudo version 2018.03 built on MoarVM version 2018.03implementing Perl 6.c.
The text was updated successfully, but these errors were encountered: