Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created March 20, 2010 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/338795 to your computer and use it in GitHub Desktop.
Save jnthn/338795 to your computer and use it in GitHub Desktop.
diff --git a/src/PAST/Compiler-Regex.pir b/src/PAST/Compiler-Regex.pir
index 489e5e2..2c6ba1b 100644
--- a/src/PAST/Compiler-Regex.pir
+++ b/src/PAST/Compiler-Regex.pir
@@ -712,10 +712,10 @@ second child of this node.
ops.'push_pirop'('inline', subtype, $S0, 'inline'=>' # rx literal %0 %1')
ops.'push'(lpost)
- .local int litlen
+ .local string litlen
if litconst goto litlen_const
litlen = '$I10'
- ops.'push_pirop'('length', '$I10', lpost)
+ ops.'push_pirop'('length', litlen, lpost)
goto have_litlen
litlen_const:
$S0 = lpast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment