Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Regex compiler missed negative case of literals.
This was the root cause of the 46-charspec.t parsing bug.
  • Loading branch information
jnthn committed Feb 28, 2013
1 parent 7d43858 commit ce3ee72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/QAST/JASTCompiler.nqp
Expand Up @@ -4006,7 +4006,7 @@ class QAST::CompilerJAST {
$il.append(JAST::Instruction.new( :op('invokevirtual'),
$TYPE_STR, 'equals', 'Z', $TYPE_OBJ ));
}
$il.append(JAST::Instruction.new( :op('ifeq'), %*REG<fail> ));
$il.append(JAST::Instruction.new( :op($node.negate ?? 'ifne' !! 'ifeq'), %*REG<fail> ));

$il.append(JAST::Instruction.new( :op('lload'), %*REG<pos> ));
$il.append(JAST::PushIVal.new( :value($litlen) ));
Expand Down

0 comments on commit ce3ee72

Please sign in to comment.