Skip to content

Commit

Permalink
Remove bogus type conversion instructions.
Browse files Browse the repository at this point in the history
Fixes /a**4/ bug, found by timotimo++.
  • Loading branch information
jnthn committed Mar 9, 2013
1 parent dc5a013 commit e79a20a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/QAST/JASTCompiler.nqp
Expand Up @@ -4206,7 +4206,6 @@ class QAST::CompilerJAST {
$il.append(JAST::Instruction.new( :op('lload'), %*REG<rep> ));
$il.append(JAST::PushIVal.new( :value($node.max) ));
$il.append(JAST::Instruction.new( :op('lcmp') ));
$il.append(JAST::Instruction.new( :op('l2i') ));
$il.append(JAST::Instruction.new( :op('ifge'), $donelabel ));
}
}
Expand All @@ -4224,7 +4223,6 @@ class QAST::CompilerJAST {
$il.append(JAST::Instruction.new( :op('lload'), %*REG<rep> ));
$il.append(JAST::PushIVal.new( :value(+$node.min) ));
$il.append(JAST::Instruction.new( :op('lcmp') ));
$il.append(JAST::Instruction.new( :op('l2i') ));
$il.append(JAST::Instruction.new( :op('iflt'), %*REG<fail> ));
}
}
Expand Down

0 comments on commit e79a20a

Please sign in to comment.