Skip to content

Commit

Permalink
Fix explosion in List.combinations: Range
Browse files Browse the repository at this point in the history
Still needs more work with non-Int Ranges. Will be
resolved as part of R#1629
#1629
  • Loading branch information
zoffixznet committed Mar 19, 2018
1 parent 96570c5 commit 624b3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/List.pm6
Expand Up @@ -1150,12 +1150,12 @@ my class List does Iterable does Positional { # declared in BOOTSTRAP
nqp::stmts(
nqp::unless(
$ofrange.min < 0, # $i already 0 if not
($i = $ofrange.min + $ofrange.excludes-min)
($i = ($ofrange.min + $ofrange.excludes-min).Int)
),
nqp::if(
$ofrange.max > $elems,
($to = $elems),
($to = $ofrange.max - $ofrange.excludes-max)
($to = ($ofrange.max - $ofrange.excludes-max).Int)
)
)
),
Expand Down

0 comments on commit 624b3f0

Please sign in to comment.