Skip to content

Commit

Permalink
[js] Make nqp::cmp_n work with nqp::nan properly
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Sep 21, 2017
1 parent 30d3659 commit 16d135c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/Operations.nqp
Expand Up @@ -358,7 +358,7 @@ class QAST::OperationsJS {

sub add_cmp_op($op, $type) {
add_simple_op($op, $T_INT, [$type, $type], sub ($a, $b) {
"($a < $b ? -1 : ($a == $b ? 0 : 1))"
"($a < $b ? -1 : ($a > $b ? 1 : 0))"
});
}

Expand Down

0 comments on commit 16d135c

Please sign in to comment.