Skip to content

Commit

Permalink
[rakudo]: Add +Inf and -Inf to min and max (RT #60868, cspencer++)
Browse files Browse the repository at this point in the history
* Patch courtesy Cory Spencer.


git-svn-id: https://svn.parrot.org/parrot/trunk@34214 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
pmichaud committed Dec 21, 2008
1 parent 0bd1bd5 commit 9d1f63d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions languages/perl6/src/builtins/any-list.pir
Expand Up @@ -246,7 +246,9 @@ the size of that file down and to emphasize their generic,
result = $P0
goto loop
fail:
result = 'undef'()
.local num failres
failres = "+Inf"
.return (failres)
done:
.return (result)
.end
Expand Down Expand Up @@ -288,7 +290,9 @@ the size of that file down and to emphasize their generic,
result = $P0
goto loop
fail:
result = 'undef'()
.local num failres
failres = "-Inf"
.return (failres)
done:
.return (result)
.end
Expand Down

0 comments on commit 9d1f63d

Please sign in to comment.