[patch] ithreads + refto fix improvement
Doug MacEachern [Thu, 2 Aug 2001 09:41:53 +0000 (02:41 -0700)]
Message-ID: <Pine.LNX.4.21.0108020939030.8991-100000@mako.covalent.net>

p4raw-id: //depot/perl@11553

pp.c

diff --git a/pp.c b/pp.c
index b6c11da..1cb3a44 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -467,8 +467,8 @@ S_refto(pTHX_ SV *sv)
        SvTEMP_off(sv);
        (void)SvREFCNT_inc(sv);
     }
-    else if (SvPADTMP(sv) && !(isGV(sv) && GvIN_PAD(sv)))
-       sv = newSVsv(sv);
+    else if (SvPADTMP(sv) && !IS_PADGV(sv))
+        sv = newSVsv(sv);
     else {
        SvTEMP_off(sv);
        (void)SvREFCNT_inc(sv);