diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-05-24 10:59:01 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-06-11 09:40:01 +0200 |
commit | 1979170bfeba87d234d4d34023c2ea5feeb22f48 (patch) | |
tree | 85111eee90eb99a1999b228c8094162705149c01 /pad.c | |
parent | 4265b45d3e4359a48158b96f90aa017ade60632c (diff) | |
download | perl-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |