Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
handle Num case in blocks in quantifiers in regexes
  • Loading branch information
FROGGS committed Aug 2, 2014
1 parent f5d1870 commit 4e9338a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Cursor.pm
Expand Up @@ -166,11 +166,11 @@ my class Cursor does NQPCursorRole {
if $mm ~~ Range {
die 'Range minimum in quantifier (**) cannot be +Inf' if $mm.min == Inf;
die 'Range maximum in quantifier (**) cannot be -Inf' if $mm.max == -Inf;
nqp::list_i($mm.min < 0 ?? 0 !! $mm.min, $mm.max == Inf ?? -1 !! $mm.max)
nqp::list_i($mm.min < 0 ?? 0 !! $mm.min.Int, $mm.max == Inf ?? -1 !! $mm.max.Int)
}
else {
fail 'Fixed quantifier cannot be infinite' if $mm == -Inf || $mm == Inf;
nqp::list_i($mm, $mm)
nqp::list_i($mm.Int, $mm.Int)
}
}

Expand Down

0 comments on commit 4e9338a

Please sign in to comment.