summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-27 22:11:29 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-30 11:48:41 -0800
commitdbfcda05eb64bedf93e1561611c6e820e1c50ff1 (patch)
tree26bd790473496e6e45623022af83f20cdd653dcc /pad.c
parent01b9977c9befe5459c20661a52da1e4310599b16 (diff)
downloadperl-dbfcda05eb64bedf93e1561611c6e820e1c50ff1.tar.gz
Use PADNAME rather than SV in pad.c:pad_tidy
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pad.c b/pad.c
index 7dbdb9a805..3847a27a10 100644
--- a/pad.c
+++ b/pad.c
@@ -1719,8 +1719,8 @@ Perl_pad_tidy(pTHX_ padtidy_type type)
PADOFFSET ix;
for (ix = AvFILLp(PL_comppad); ix > 0; ix--) {
- SV *namesv;
- if (!namep[ix]) namep[ix] = &PL_sv_undef;
+ PADNAME *namesv;
+ if (!namep[ix]) namep[ix] = &PL_padname_undef;
/*
* The only things that a clonable function needs in its
@@ -1731,7 +1731,7 @@ Perl_pad_tidy(pTHX_ padtidy_type type)
continue;
namesv = namep[ix];
if (!(PadnamePV(namesv) &&
- (!PadnameLEN(namesv) || *SvPVX_const(namesv) == '&')))
+ (!PadnameLEN(namesv) || *PadnamePV(namesv) == '&')))
{
SvREFCNT_dec(PL_curpad[ix]);
PL_curpad[ix] = NULL;