summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-31 18:09:20 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-31 18:09:20 +0000
commit59155cc063cf4bfd6a5bac9ec4e936509becfd87 (patch)
tree061f9c41a59986ca3ad35e19813701e7e11de88e /sv.c
parentf4a14a62773a52915497a005f3032730fe6154fd (diff)
downloadperl-59155cc063cf4bfd6a5bac9ec4e936509becfd87.tar.gz
Forget about NV_MAX (#6951). Various floating point tweaks,
ideas from Eric Fifer, Yitzchak, Alan, and Spider. p4raw-id: //depot/perl@6953
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 0fdae01779..827bd962a6 100644
--- a/sv.c
+++ b/sv.c
@@ -2212,7 +2212,8 @@ Perl_sv_2pv(pTHX_ register SV *sv, STRLEN *lp)
* --jhi Sep 1999 */
if (SvTYPE(sv) < SVt_PVNV)
sv_upgrade(sv, SVt_PVNV);
- SvGROW(sv, NV_DIG + 10); /* sign, decimal separator, e+NNNNN, nul */
+ /* The +20 is pure guesswork. Configure test needed. --jhi */
+ SvGROW(sv, NV_DIG + 20);
s = SvPVX(sv);
olderrno = errno; /* some Xenix systems wipe out errno here */
#ifdef apollo