diff options
author | David Mitchell <davem@iabyn.com> | 2011-10-07 15:38:56 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2011-10-07 20:07:48 +0100 |
commit | 9a214eecd07ed44274740f81d8dce0e526badf80 (patch) | |
tree | 1e33a4db9f23d13f72f267978a83a39188677a11 /pad.c | |
parent | d0c0e7dd0ccf3d5c2f658529d3ee578a0bcb116e (diff) | |
download | perl-9a214eecd07ed44274740f81d8dce0e526badf80.tar.gz |
make SVs_PADTMP and SVs_PADSTALE share a bit
SVs_PADSTALE is only meaningful with SVs_PADMY, while
SVs_PADTMP is only meaningful with !SVs_PADMY,
so let them share the same flag bit.
Note that this doesn't yet free a bit in SvFLAGS, as the two
bits are also used for SVpad_STATE, SVpad_TYPED.
(This is is follow-on to 62bb6514085e5eddc42b4fdaf3713ccdb7f1da85.)
Diffstat (limited to 'pad.c')
-rw-r--r-- | pad.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1720,7 +1720,7 @@ Perl_pad_free(pTHX_ PADOFFSET po) ); if (PL_curpad[po] && PL_curpad[po] != &PL_sv_undef) { - SvPADTMP_off(PL_curpad[po]); + SvFLAGS(PL_curpad[po]) &= ~SVs_PADTMP; /* also clears SVs_PADSTALE */ } if ((I32)po < PL_padix) PL_padix = po - 1; |