Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid a double-encoding bug (by us then by the toolkit) that oddly ma…
…nifested itself during other refactors.
  • Loading branch information
jnthn committed Apr 20, 2011
1 parent a89b31b commit 592c026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/PAST/Compiler-Regex.pir
Expand Up @@ -110,9 +110,8 @@ Return the POST representation of the regex AST rooted by C<node>.
token_done:
$S0 = regexname
$S0 = concat '!PREFIX__', $S0
$S1 = escape $S0
$P99 = get_hll_global ['PAST'], 'Block'
tpast = $P99.'new'(tpast, 'name'=>$S0, 'nsentry'=>$S1, 'lexical'=>0, 'blocktype'=>'method')
tpast = $P99.'new'(tpast, 'name'=>$S0, 'nsentry'=>$S0, 'lexical'=>0, 'blocktype'=>'method')
tpost = self.'as_post'(tpast, 'rtype'=>'v')
ops.'push'(tpost)
peek_done:
Expand Down
3 changes: 1 addition & 2 deletions src/stage0/Regex-s0.pir
Expand Up @@ -2823,9 +2823,8 @@ Return the POST representation of the regex AST rooted by C<node>.
token_done:
$S0 = regexname
$S0 = concat '!PREFIX__', $S0
$S1 = escape $S0
$P99 = get_hll_global ['PAST'], 'Block'
tpast = $P99.'new'(tpast, 'name'=>$S0, 'nsentry'=>$S1, 'lexical'=>0, 'blocktype'=>'method')
tpast = $P99.'new'(tpast, 'name'=>$S0, 'nsentry'=>$S0, 'lexical'=>0, 'blocktype'=>'method')
tpost = self.'as_post'(tpast, 'rtype'=>'v')
ops.'push'(tpost)
peek_done:
Expand Down

0 comments on commit 592c026

Please sign in to comment.