Permalink
Browse files

Don't rely on magical 'Inf' coercion.

  • Loading branch information...
jnthn committed Jun 20, 2013
1 parent 8506c14 commit 4040ef105c78496bd22f6e20952fc68f1b910ae5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/List.pm
View
@@ -99,7 +99,7 @@ my class List does Positional {
# Get as many elements as we can. If gimme stops before
# reaching the end of the list, assume the list is infinite.
my $n = self.gimme(*);
- $!nextiter.defined ?? nqp::p6box_n('Inf') !! $n
+ $!nextiter.defined ?? nqp::p6box_n(nqp::inf()) !! $n
}
method exists(\pos) {

0 comments on commit 4040ef1

Please sign in to comment.