summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-09-12 23:10:58 +0000
committerNicholas Clark <nick@ccl4.org>2007-09-12 23:10:58 +0000
commit955623668f666142789ec391e521b0b6705cea7b (patch)
tree1fa1bc378fafdc86c74d341108f1385393811278 /op.c
parent3952c29af3f3c84465fe5840218071974ce033e4 (diff)
downloadperl-955623668f666142789ec391e521b0b6705cea7b.tar.gz
Add the missing assignment to op_last that change 31798 missed out.
With this, state $zok = ...; will deparse. p4raw-id: //depot/perl@31857
Diffstat (limited to 'op.c')
-rw-r--r--op.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/op.c b/op.c
index 1ebc84c325..d3fabf35b8 100644
--- a/op.c
+++ b/op.c
@@ -7065,6 +7065,11 @@ Perl_ck_sassign(pTHX_ OP *o)
condop->op_targ = target;
other->op_targ = target;
+ /* Because we change the type of the op here, we will skip the
+ assinment binop->op_last = binop->op_first->op_sibling; at the
+ end of Perl_newBINOP(). So need to do it here. */
+ cBINOPo->op_last = cBINOPo->op_first->op_sibling;
+
return nullop;
}
}