This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlhist: add 5.15.0 and 5.14.1 entries
[perl5.git] / pad.c
diff --git a/pad.c b/pad.c
index ff52eb8..b5ee2bf 100644 (file)
--- a/pad.c
+++ b/pad.c
@@ -795,8 +795,7 @@ Perl_find_rundefsv(pTHX)
     po = pad_findlex("$_", find_runcv(NULL), PL_curcop->cop_seq, 1,
            NULL, &namesv, &flags);
 
-    if (po == NOT_IN_PAD
-       || (SvFLAGS(namesv) & (SVpad_NAME|SVpad_OUR)) == (SVpad_NAME|SVpad_OUR))
+    if (po == NOT_IN_PAD || SvPAD_OUR(namesv))
        return DEFSV;
 
     return PAD_SVl(po);