From: Gurusamy Sarathy Date: Fri, 16 Oct 1998 00:10:52 +0000 (+0000) Subject: stray tweak X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=87671ffc0b0ccacb922794ca8606103dc9023688;p=p5sagit%2Fp5-mst-13.2.git stray tweak p4raw-id: //depot/perl@1976 --- diff --git a/op.c b/op.c index 98ceb4f..635f4cd 100644 --- a/op.c +++ b/op.c @@ -219,10 +219,10 @@ pad_findlex(char *name, PADOFFSET newoff, U32 seq, CV* startcv, I32 cx_ix, I32 s SvNVX(namesv) = (double)PL_curcop->cop_seq; SvIVX(namesv) = PAD_MAX; /* A ref, intro immediately */ SvFAKE_on(namesv); /* A ref, not a real var */ - if (SvOBJECT(svp[off])) { /* A typed var */ + if (SvOBJECT(sv)) { /* A typed var */ SvOBJECT_on(namesv); (void)SvUPGRADE(namesv, SVt_PVMG); - SvSTASH(namesv) = (HV*)SvREFCNT_inc((SV*)SvSTASH(svp[off])); + SvSTASH(namesv) = (HV*)SvREFCNT_inc((SV*)SvSTASH(sv)); PL_sv_objcount++; } if (CvANON(PL_compcv) || SvTYPE(PL_compcv) == SVt_PVFM) {