Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
NaN === NaN (RT #83622)
masak++ for a simplification
  • Loading branch information
coke committed Aug 19, 2014
1 parent c516d5e commit a82c407
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Num.pm
Expand Up @@ -338,6 +338,9 @@ multi infix:«<=>»(num $a, num $b) {
multi infix:<===>(Num:D \a, Num:D \b) {
nqp::p6bool(nqp::iseq_n(nqp::unbox_n(a), nqp::unbox_n(b)))
}
multi infix:<===>(NaN, NaN) {
True;
}
multi infix:<===>(num $a, num $b) returns Bool:D {
nqp::p6bool(nqp::iseq_n($a, $b))
}
Expand Down

0 comments on commit a82c407

Please sign in to comment.