Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Change check for :rule type.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Nov 22, 2009
1 parent ba1f213 commit e395215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Regex/Cursor.pir
Expand Up @@ -169,8 +169,8 @@ If C<regex> is omitted, then use the C<TOP> rule for the grammar.
if has_regex goto have_regex
regex = box 'TOP'
have_regex:
$I0 = isa regex, ['Sub']
if $I0 goto regex_done
$I0 = isa regex, ['String']
unless $I0 goto regex_done
$S0 = regex
regex = find_method self, $S0
regex_done:
Expand Down

0 comments on commit e395215

Please sign in to comment.