summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-05-24 10:59:01 +0100
committerNicholas Clark <nick@ccl4.org>2011-06-11 09:40:01 +0200
commit1979170bfeba87d234d4d34023c2ea5feeb22f48 (patch)
tree85111eee90eb99a1999b228c8094162705149c01 /pad.c
parent4265b45d3e4359a48158b96f90aa017ade60632c (diff)
downloadperl-1979170bfeba87d234d4d34023c2ea5feeb22f48.tar.gz
Test that SvFLAGS() & SVpad_NAME is SVpad_NAME, not just non-zero.
In Perl_find_rundefsv() and PAD_COMPNAME_FLAGS_isOUR(), replace longhand flags test with SvPAD_OUR().
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pad.c b/pad.c
index ff52eb8bd4..b5ee2bfa78 100644
--- 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);