aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-07-13 18:51:11 +0000
committerDJ Delorie <dj@redhat.com>2000-07-13 18:51:11 +0000
commit91a8d90babddd48b5ce982eaddeff0c94640d7c8 (patch)
tree3f0b13f2e991909a5e60e1317a108d49e2942e90
parentd9028f52ae8e4ef319cfe37dce82ddc0cfefe7ee (diff)
downloadnewlib-91a8d90babddd48b5ce982eaddeff0c94640d7c8.zip
newlib-91a8d90babddd48b5ce982eaddeff0c94640d7c8.tar.gz
newlib-91a8d90babddd48b5ce982eaddeff0c94640d7c8.tar.bz2
* libc/stdio/vfprintf.c: pad 0.0 correctly with %e
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/stdio/vfprintf.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 78b76c0..b2af5ff 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2000-07-13 DJ Delorie <dj@cygnus.com>
+
+ * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
+
Wed Jun 28 14:08:00 2000 Keith Walker <keith.walker@arm.com>
* libc/sys/arm/crt0.S (.LC30): Added missing length parameter
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index 41f7d52..a96ce0c 100644
--- a/newlib/libc/stdio/vfprintf.c
+++ b/newlib/libc/stdio/vfprintf.c
@@ -824,7 +824,7 @@ number: if ((dprec = prec) >= 0)
ox[0] = *cp++;
ox[1] = '.';
PRINT(ox, 2);
- if (_double || (flags & ALT) == 0) {
+ if (_double) {
PRINT(cp, ndig-1);
} else /* 0.[0..] */
/* __dtoa irregularity */