diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-07 17:27:51 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-07 17:27:51 +0000 |
commit | c1939273d48daaa779bfff86aacdcd7106ed3497 (patch) | |
tree | 2fabdfc0c2eafafaf57b478e0b076ee1f33c65c5 /perl.c | |
parent | 205f85e8dfcf175bc1c738360c2006da8eac7816 (diff) | |
download | perl-c1939273d48daaa779bfff86aacdcd7106ed3497.tar.gz |
Save an upgrade each by first setting the NV on PL_sv_yes and PL_sv_no
at interpreter construction time.
p4raw-id: //depot/perl@32893
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -301,14 +301,14 @@ perl_construct(pTHXx) sv_setpv(&PL_sv_no,PL_No); /* value lookup in void context - happens to have the side effect of caching the numeric forms. */ - SvIV(&PL_sv_no); SvNV(&PL_sv_no); + SvIV(&PL_sv_no); SvREADONLY_on(&PL_sv_no); SvREFCNT(&PL_sv_no) = (~(U32)0)/2; sv_setpv(&PL_sv_yes,PL_Yes); - SvIV(&PL_sv_yes); SvNV(&PL_sv_yes); + SvIV(&PL_sv_yes); SvREADONLY_on(&PL_sv_yes); SvREFCNT(&PL_sv_yes) = (~(U32)0)/2; |