diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-02-14 23:42:45 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-02-14 23:42:45 +0000 |
commit | c268c2a6c105d04cb2a165c1cfb63069e7ae2774 (patch) | |
tree | b81e445193b945d25e66e5b7b457bad745938c67 | |
parent | 9b15102ac1516dec5ebb563b92cc3e6800cfa1d2 (diff) | |
download | perl-c268c2a6c105d04cb2a165c1cfb63069e7ae2774.tar.gz |
Back out change change 10214 (drop SVp_IOK from >> PRIVSHIFT) as it
never felt quite correct, and other parts of the SV conversion
implementation have improved such that the symptoms 10214 covered
over are gone even without it.
p4raw-id: //depot/perl@27184
-rw-r--r-- | mg.c | 2 | ||||
-rw-r--r-- | scope.c | 2 | ||||
-rw-r--r-- | sv.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -100,7 +100,7 @@ S_save_magic(pTHX_ I32 mgs_ix, SV *sv) SvMAGICAL_off(sv); SvREADONLY_off(sv); - SvFLAGS(sv) |= (SvFLAGS(sv) & (SVp_NOK|SVp_POK)) >> PRIVSHIFT; + SvFLAGS(sv) |= (SvFLAGS(sv) & (SVp_IOK|SVp_NOK|SVp_POK)) >> PRIVSHIFT; } /* @@ -169,7 +169,7 @@ S_save_scalar_at(pTHX_ SV **sptr) if (SvGMAGICAL(osv)) { const bool oldtainted = PL_tainted; SvFLAGS(osv) |= (SvFLAGS(osv) & - (SVp_NOK|SVp_POK)) >> PRIVSHIFT; + (SVp_IOK|SVp_NOK|SVp_POK)) >> PRIVSHIFT; PL_tainted = oldtainted; } mg_localize(osv, sv); @@ -4424,7 +4424,7 @@ Perl_sv_unmagic(pTHX_ SV *sv, int type) } if (!SvMAGIC(sv)) { SvMAGICAL_off(sv); - SvFLAGS(sv) |= (SvFLAGS(sv) & (SVp_NOK|SVp_POK)) >> PRIVSHIFT; + SvFLAGS(sv) |= (SvFLAGS(sv) & (SVp_IOK|SVp_NOK|SVp_POK)) >> PRIVSHIFT; SvMAGIC_set(sv, NULL); } |