Skip to content

Commit 2c0f695

Browse files
committed
Fix fail in setting the cursor variable.
1 parent 87bb1c3 commit 2c0f695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QAST/Compiler.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class QAST::Compiler is HLL::Compiler {
3636

3737
# common prologue
3838
my $startreg := '(' ~ nqp::join(', ', [%*REG<cur>, %*REG<tgt>, %*REG<pos>, %*REG<curclass>, %*REG<bstack>, '$I19']) ~ ')';
39-
$ops.push_pirop('store_lex', 'unicode:"$\x{a2}"', %*REG<cur>);
4039
$ops.push_pirop('callmethod', '"!cursor_start"', 'self', :result($startreg));
40+
$ops.push_pirop('store_lex', 'unicode:"$\x{a2}"', %*REG<cur>);
4141
$ops.push_pirop('length', %*REG<eos>, %*REG<tgt>);
4242
$ops.push_pirop('eq', '$I19', 1, $restartlabel);
4343
$ops.push(self.regex_post($node));

0 commit comments

Comments
 (0)