From 87d7fd28459b8274079ce3260d3e07e306aa70d8 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Sat, 19 Feb 2000 17:33:05 +0000 Subject: more B fixups to cope with empty GVs (these can only happen in pads) p4raw-id: //depot/perl@5150 --- op.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'op.c') diff --git a/op.c b/op.c index 32eb7b06ed..eb60ec1876 100644 --- a/op.c +++ b/op.c @@ -1412,18 +1412,19 @@ Perl_mod(pTHX_ OP *o, I32 type) if (kid->op_type == OP_METHOD_NAMED || kid->op_type == OP_METHOD) { - OP *newop; + UNOP *newop; if (kid->op_sibling || kid->op_next != kid) { yyerror("panic: unexpected optree near method call"); break; } - NewOp(1101, newop, 1, OP); + NewOp(1101, newop, 1, UNOP); newop->op_type = OP_RV2CV; newop->op_ppaddr = PL_ppaddr[OP_RV2CV]; - newop->op_next = newop; - kid->op_sibling = newop; + newop->op_first = Nullop; + newop->op_next = (OP*)newop; + kid->op_sibling = (OP*)newop; newop->op_private |= OPpLVAL_INTRO; break; } -- cgit v1.2.1