diff options
author | 2002-12-02 15:38:54 +0000 | |
---|---|---|
committer | 2002-12-02 15:38:54 +0000 | |
commit | 80944f1949cd485fef6c77d9be08a8bb48d4a55e (patch) | |
tree | c1ec6c7043085515a170c88335b10c3e0b0535b2 /lib/libc/stdlib/strtod.c | |
parent | spelling; from Jolan <jolan at cryptonomicon.org> (diff) | |
download | wireguard-openbsd-80944f1949cd485fef6c77d9be08a8bb48d4a55e.tar.xz wireguard-openbsd-80944f1949cd485fef6c77d9be08a8bb48d4a55e.zip |
Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code.
Diffstat (limited to 'lib/libc/stdlib/strtod.c')
-rw-r--r-- | lib/libc/stdlib/strtod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/strtod.c b/lib/libc/stdlib/strtod.c index ce7ce9fe562..17d26a1dc33 100644 --- a/lib/libc/stdlib/strtod.c +++ b/lib/libc/stdlib/strtod.c @@ -90,7 +90,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strtod.c,v 1.15 2002/02/19 19:39:37 millert Exp $"; +static char *rcsid = "$OpenBSD: strtod.c,v 1.16 2002/12/02 15:38:54 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ @@ -1992,7 +1992,7 @@ __dtoa *decpt = 9999; s = #ifdef IEEE_Arith - !word1(d) && !(word0(d) & 0xfffff) ? "Infinity" : + !word1(d) && !(word0(d) & 0xfffff) ? ndigits < 8 ? "Inf" : "Infinity" : #endif "NaN"; if (rve) |