aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-12-07 00:17:20 +0000
committerJeff Johnston <jjohnstn@redhat.com>2000-12-07 00:17:20 +0000
commit9f6e8f1b7f8e896e46257c0e29cd29a7ea8144dd (patch)
tree3f78cbce61c4ade060137a9dfd7582617b774a66
parent6bdac416e9e1aecfb94cd3ae383889cc7b7e62e3 (diff)
downloadnewlib-9f6e8f1b7f8e896e46257c0e29cd29a7ea8144dd.zip
newlib-9f6e8f1b7f8e896e46257c0e29cd29a7ea8144dd.tar.gz
newlib-9f6e8f1b7f8e896e46257c0e29cd29a7ea8144dd.tar.bz2
2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/stdio/vfscanf.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index e1e2f35..1e11e73 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,9 @@
2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
+ * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
+
+2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
+
* 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 cc0f26d..623e744 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 *);