Skip to content

Commit

Permalink
Oops, fix an off-by-one error introduced just now
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 9, 2015
1 parent fd403a8 commit 693ca01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Range.pm
Expand Up @@ -113,7 +113,7 @@ my class Range is Cool does Iterable does Positional {
}
method push-exactly($target, int $n) {
my int $left = $!n - $!i - 1;
if $n >= $left {
if $n > $left {
$target.push(nqp::p6box_i($!i))
while ($!i = $!i + 1) <= $!n;
IterationEnd
Expand Down

0 comments on commit 693ca01

Please sign in to comment.