Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix &infix:<cmp>(Any,Any) to use value identity for Inf/-Inf instead …

…of numeric identity.
  • Loading branch information...
commit 120e95d53744be1b65dd365c1405686667d28177 1 parent c89ce89
@pmichaud pmichaud authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/Any.pm
View
4 src/core/Any.pm
@@ -238,8 +238,8 @@ multi infix:<===>($a, $b) {
proto infix:<cmp>($, $) { * }
multi infix:<cmp>(\$a, \$b) {
- return -1 if $a == -$Inf || $b == $Inf;
- return 1 if $a == $Inf || $b == -$Inf;
+ return -1 if $a === -$Inf || $b === $Inf;
+ return 1 if $a === $Inf || $b === -$Inf;
$a.Stringy cmp $b.Stringy
}
Please sign in to comment.
Something went wrong with that request. Please try again.