From 33c52dbc7f9b4c2618b7f2982c286721349868fd Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Thu, 22 Mar 2018 17:22:40 +0100 Subject: [PATCH] Fix GH R#1640 nqp::not_i on big Int's don't work. Use the HLL prefix: instead. --- src/core/Numeric.pm6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Numeric.pm6 b/src/core/Numeric.pm6 index 0632c47a0e4..c8b16dba445 100644 --- a/src/core/Numeric.pm6 +++ b/src/core/Numeric.pm6 @@ -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) )