We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fad34d4 commit 6aba3c2Copy full SHA for 6aba3c2
src/vm/moar/QAST/QASTRegexCompilerMAST.nqp
@@ -574,7 +574,7 @@ class QAST::MASTRegexCompiler {
574
}
575
if $max > 1 {
576
my $maxreg := fresh_i();
577
- nqp::push(@ins, op('const_i64', $maxreg, ival($max))) if $max > 1;
+ nqp::push(@ins, op('const_i64', $maxreg, ival($max)));
578
nqp::push(@ins, op('ge_i', $ireg, $rep, $maxreg));
579
nqp::push(@ins, op('if_i', $ireg, $donelabel));
580
release($maxreg, $MVM_reg_int64);
@@ -593,7 +593,7 @@ class QAST::MASTRegexCompiler {
593
nqp::push(@ins, op('inc_i', $rep));
594
595
596
597
598
599
0 commit comments