summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2001-06-09 17:26:10 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-09 14:47:25 +0000
commit560b0c4689b6e31fce48b1c9d1501740be901c76 (patch)
tree9ddf4bbf94ac761c2423adcda02b1b4b9c623fc3 /sv.c
parent9ccde9ea2bb57aed1bc0b0aa9ab7efb13c7c1a15 (diff)
downloadperl-560b0c4689b6e31fce48b1c9d1501740be901c76.tar.gz
Re: pragma/locale.t #107
Message-ID: <20010609162609.V76396@plum.flirble.org> A missing NVification. p4raw-id: //depot/perl@10484
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 76481dcbad..fe6d11e7be 100644
--- a/sv.c
+++ b/sv.c
@@ -2070,6 +2070,7 @@ Perl_sv_2iv(pTHX_ register SV *sv)
/* The IV slot will have been set from value returned by
grok_number above. The NV slot has just been set using
Atof. */
+ SvNOK_on(sv);
assert (SvIOKp(sv));
} else {
if (((UV)1 << NV_PRESERVES_UV_BITS) >
@@ -2346,6 +2347,7 @@ Perl_sv_2uv(pTHX_ register SV *sv)
/* The UV slot will have been set from value returned by
grok_number above. The NV slot has just been set using
Atof. */
+ SvNOK_on(sv);
assert (SvIOKp(sv));
} else {
if (((UV)1 << NV_PRESERVES_UV_BITS) >