Skip to content

Commit

Permalink
Fix GH R#1640
Browse files Browse the repository at this point in the history
nqp::not_i on big Int's don't work.  Use the HLL prefix:<!> instead.
  • Loading branch information
lizmat committed Mar 22, 2018
1 parent bdd8143 commit 33c52db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Numeric.pm6
Expand Up @@ -240,7 +240,7 @@ multi sub infix:<%%>(Int:D \a, Int:D \b) {
nqp::isbig_I(nqp::decont(a)) || nqp::isbig_I(nqp::decont(b)),
nqp::if(
b,
nqp::p6bool(nqp::not_i(nqp::mod_I(nqp::decont(a),nqp::decont(b),Int))),
!nqp::mod_I(nqp::decont(a),nqp::decont(b),Int),
Failure.new(
X::Numeric::DivideByZero.new(using => 'infix:<%%>', numerator => a)
)
Expand Down

0 comments on commit 33c52db

Please sign in to comment.