Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Quick fix for RT #128318
  • Loading branch information
lizmat committed Jun 4, 2016
1 parent 48fe6ae commit 986891f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Int.pm
Expand Up @@ -277,7 +277,7 @@ multi sub infix:<%>(Int:D \a, Int:D \b) returns Int {
}
multi sub infix:<%>(int $a, int $b) returns int {
# relies on opcode or hardware to detect division by 0
nqp::mod_i($a, $b)
nqp::mod_i(nqp::add_i(nqp::mod_i($a,$b),$b),$b) # quick fix RT #128318
}

multi sub infix:<**>(Int:D \a, Int:D \b) {
Expand Down

0 comments on commit 986891f

Please sign in to comment.