From 1f06ca22c29288ca7a291b1c0f2b4e17604abb03 Mon Sep 17 00:00:00 2001 From: jjohnstn Date: Thu, 7 Dec 2000 00:17:19 +0000 Subject: [PATCH] 2000-12-06 Jeff Johnston * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro. --- newlib/ChangeLog | 4 ++++ newlib/libc/stdio/vfscanf.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index e1e2f35e0c..1e11e7368b 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,5 +1,9 @@ 2000-12-06 Jeff Johnston + * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro. + +2000-12-06 Jeff Johnston + * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources. * libc/stdlib/Makefile.in: Regenerated. * libc/stdio/floatio.h: Added suitable MAXEXP for long double. diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index cc0f26d3c7..623e744b99 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -845,11 +845,11 @@ __svfscanf (fp, fmt0, ap) exp_start = buf + sizeof (buf) - MAX_LONG_LEN - 1; sprintf (exp_start, "e%ld", new_exp); } -#ifdef _NO_LONG_DBL +#ifdef _NO_LONGDBL res = atof (buf); -#else /* !_NO_LONG_DBL */ +#else /* !_NO_LONGDBL */ res = _strtold (buf, NULL); -#endif /* !_NO_LONG_DBL */ +#endif /* !_NO_LONGDBL */ if (flags & LONG) { dp = va_arg (ap, double *); -- 2.11.0