summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-07 17:27:51 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-07 17:27:51 +0000
commitc1939273d48daaa779bfff86aacdcd7106ed3497 (patch)
tree2fabdfc0c2eafafaf57b478e0b076ee1f33c65c5 /perl.c
parent205f85e8dfcf175bc1c738360c2006da8eac7816 (diff)
downloadperl-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl.c b/perl.c
index abebfa67fb..c7e9a908fc 100644
--- a/perl.c
+++ b/perl.c
@@ -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;