Skip to content

Commit

Permalink
Adapt to simplified nqp::isprime_I
Browse files Browse the repository at this point in the history
Because we decided it wasn't necessary to be able to specify the number
of rounds, that parameter was removed from the MoarVM implementation.

Requires Raku/nqp#671
  • Loading branch information
MasterDuke17 committed Sep 26, 2020
1 parent c7549f5 commit 80bf1db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core.c/Int.pm6
Expand Up @@ -157,7 +157,7 @@ my class Int does Real { # declared in BOOTSTRAP
method expmod(Int:D: Int:D \base, Int:D \mod --> Int:D) {
nqp::expmod_I(self, nqp::decont(base), nqp::decont(mod), Int);
}
method is-prime(--> Bool:D) { nqp::hllbool(nqp::isprime_I(self,100)) }
method is-prime(--> Bool:D) { nqp::hllbool(nqp::isprime_I(self)) }

method floor(Int:D:) { self }
method ceiling(Int:D:) { self }
Expand Down
2 changes: 1 addition & 1 deletion tools/templates/NQP_REVISION
@@ -1 +1 @@
2020.09
2020.09-3-g30dd003b1

0 comments on commit 80bf1db

Please sign in to comment.