Skip to content

Commit

Permalink
Merge pull request #3932 from MasterDuke17/adapt_to_simplified_isprime
Browse files Browse the repository at this point in the history
Adapt to simplified nqp::isprime_I
  • Loading branch information
MasterDuke17 committed Sep 26, 2020
2 parents c7549f5 + 80bf1db commit f74950c
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 f74950c

Please sign in to comment.