Skip to content

Commit

Permalink
Make the bitwise shift subs on Int:D's actually use the bigint arithm…
Browse files Browse the repository at this point in the history
…etic nqp ops that Moritz++ coded.
  • Loading branch information
kboga committed Jan 22, 2012
1 parent fa821c1 commit 2e84915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Int.pm
Expand Up @@ -233,14 +233,14 @@ multi infix:<+^>(int $a, int $b) {
}

multi infix+<»(Int:D \$a, Int:D \$b) returns Int:D {
nqp::bitshiftl_i(nqp::p6decont($a), nqp::unbox_i($b));
nqp::bitshiftl_I(nqp::p6decont($a), nqp::unbox_i($b), Int)
}
multi infix+<»(int $a, int $b) {
nqp::bitshiftl_i($a, $b);
}

multi infix+>»(Int:D \$a, Int:D \$b) returns Int:D {
nqp::bitshiftr_i(nqp::p6decont($a), nqp::unbox_i($b));
nqp::bitshiftr_I(nqp::p6decont($a), nqp::unbox_i($b), Int)
}
multi infix+>»(int $a, int $b) {
nqp::bitshiftr_i($a, $b)
Expand Down

0 comments on commit 2e84915

Please sign in to comment.