Created
March 20, 2010 17:50
-
-
Save jnthn/338795 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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