From 91a8d90babddd48b5ce982eaddeff0c94640d7c8 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 13 Jul 2000 18:51:11 +0000 Subject: * libc/stdio/vfprintf.c: pad 0.0 correctly with %e --- newlib/ChangeLog | 4 ++++ newlib/libc/stdio/vfprintf.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'newlib') diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 78b76c025..b2af5ffa3 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2000-07-13 DJ Delorie + + * libc/stdio/vfprintf.c: pad 0.0 correctly with %e + Wed Jun 28 14:08:00 2000 Keith Walker * 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 41f7d52e9..a96ce0c7d 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 */ -- cgit v1.2.3