summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1997-11-25 20:32:12 +0000
committerGurusamy Sarathy <gsar@cpan.org>1997-11-25 20:32:12 +0000
commit0372dfcfb12b34b2d22f799e7534240631131ef3 (patch)
tree476df90fb38ec74c673236a5f450684ab19c9f32 /op.c
parentd8b5173a253b0e32501b412922cc7aba3e1c7072 (diff)
parentfb54173c01796b37b2259a6538d910d610b2edbb (diff)
downloadperl-0372dfcfb12b34b2d22f799e7534240631131ef3.tar.gz
[win32] reverse integrate mainline
p4raw-id: //depot/win32/perl@302
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/op.c b/op.c
index 2d9706bb08..c86880c901 100644
--- a/op.c
+++ b/op.c
@@ -3739,8 +3739,10 @@ newSVREF(OP *o)
o->op_ppaddr = ppaddr[OP_PADSV];
return o;
}
- else if (o->op_type == OP_THREADSV)
+ else if (o->op_type == OP_THREADSV && !(o->op_flags & OPpDONE_SVREF)) {
+ o->op_flags |= OPpDONE_SVREF;
return o;
+ }
return newUNOP(OP_RV2SV, 0, scalar(o));
}