summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-21 13:08:11 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-21 13:08:11 +0000
commit377b1098958349a561ae80eec0745a3418c2ddb4 (patch)
treedd84c285293c4969299b55e46909c09f4616fb16 /perl.c
parent2f8edad0d37e91319b6ba10b3745327ea49c179b (diff)
downloadperl-377b1098958349a561ae80eec0745a3418c2ddb4.tar.gz
When changing the op_ppaddr of an op, one must keep its op_type
in sync. That helps writers of alternate runloops. p4raw-id: //depot/perl@33026
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 907f9cf8e4..8b045e05cb 100644
--- a/perl.c
+++ b/perl.c
@@ -2610,7 +2610,9 @@ Perl_call_sv(pTHX_ SV *sv, I32 flags)
Zero(&method_op, 1, UNOP);
method_op.op_next = PL_op;
method_op.op_ppaddr = PL_ppaddr[OP_METHOD];
+ method_op.op_type = OP_METHOD;
myop.op_ppaddr = PL_ppaddr[OP_ENTERSUB];
+ myop.op_type = OP_ENTERSUB;
PL_op = (OP*)&method_op;
}