Skip to content

Commit

Permalink
Make our != rather more efficient.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Aug 24, 2010
1 parent 50be0ea commit dcf5ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/NQP/NQPSetting.pm
Expand Up @@ -69,10 +69,10 @@ proto sub &infix:<!=>($x, $y) {
nqp::multi_dispatch_over_lexical_candidates("&infix:<!=>");
}
multi sub &infix:<!=>(NQPInt $x, NQPInt $y) {
!nqp::equal_ints($x, $y)
nqp::logical_not_int(nqp::equal_ints($x, $y))
}
multi sub &infix:<!=>(NQPNum $x, NQPNum $y) {
!nqp::equal_nums($x, $y)
nqp::logical_not_int(nqp::equal_nums($x, $y))
}

sub &infix:<eq>($x, $y) {
Expand Down

0 comments on commit dcf5ee5

Please sign in to comment.