summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-10-07 15:38:56 +0100
committerDavid Mitchell <davem@iabyn.com>2011-10-07 20:07:48 +0100
commit9a214eecd07ed44274740f81d8dce0e526badf80 (patch)
tree1e33a4db9f23d13f72f267978a83a39188677a11 /pad.c
parentd0c0e7dd0ccf3d5c2f658529d3ee578a0bcb116e (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pad.c b/pad.c
index 763e01bb63..c767b550c1 100644
--- a/pad.c
+++ b/pad.c
@@ -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;