Skip to content

Commit

Permalink
Use PADNAME rather than SV in pad.c:padlist_dup
Browse files Browse the repository at this point in the history
  • Loading branch information
Father Chrysostomos committed Nov 30, 2014
1 parent a2ddd1d commit 3e020df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2465,7 +2465,7 @@ Perl_padlist_dup(pTHX_ PADLIST *srcpad, CLONE_PARAMS *param)
const I32 names_fill = PadnamelistMAX(PadlistNAMES(srcpad));
const PAD *const srcpad1 = PadlistARRAY(srcpad)[1];
SV **oldpad = AvARRAY(srcpad1);
SV ** const names = PadnamelistARRAY(PadlistNAMES(dstpad));
PADNAME ** const names = PadnamelistARRAY(PadlistNAMES(dstpad));
SV **pad1a;
AV *args;

Expand All @@ -2483,9 +2483,9 @@ Perl_padlist_dup(pTHX_ PADLIST *srcpad, CLONE_PARAMS *param)
pad1a[ix] = NULL;
} else if (names_fill >= ix && names[ix] &&
PadnameLEN(names[ix])) {
const char sigil = SvPVX_const(names[ix])[0];
if ((SvFLAGS(names[ix]) & SVf_FAKE)
|| (SvFLAGS(names[ix]) & SVpad_STATE)
const char sigil = PadnamePV(names[ix])[0];
if (PadnameOUTER(names[ix])
|| PadnameIsSTATE(names[ix])
|| sigil == '&')
{
/* outer lexical or anon code */
Expand Down

0 comments on commit 3e020df

Please sign in to comment.