diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-02-15 16:29:15 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-02-15 16:29:15 +0000 |
commit | 38d09c90dec3f80091687f1b6ac253e2ffc1a0b9 (patch) | |
tree | 1e423e847072f1479a2f55cf9b0d6ec0feb600b3 | |
parent | b85c06ba36da589ef74b0e9ecb129627b5c06fc7 (diff) | |
download | newlib-38d09c90dec3f80091687f1b6ac253e2ffc1a0b9.zip newlib-38d09c90dec3f80091687f1b6ac253e2ffc1a0b9.tar.gz newlib-38d09c90dec3f80091687f1b6ac253e2ffc1a0b9.tar.bz2 |
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here
as well.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/stdio/vfwprintf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 2ba3d3b..7729b2c 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,5 +1,10 @@ 2010-02-15 Corinna Vinschen <corinna@vinschen.de> + * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here + as well. + +2010-02-15 Corinna Vinschen <corinna@vinschen.de> + * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant decimal point in case the float argument is an integral value. diff --git a/newlib/libc/stdio/vfwprintf.c b/newlib/libc/stdio/vfwprintf.c index 9cf9c3e..d9b9d56 100644 --- a/newlib/libc/stdio/vfwprintf.c +++ b/newlib/libc/stdio/vfwprintf.c @@ -1382,7 +1382,7 @@ number: if ((dprec = prec) >= 0) cp = convbuf + ndig; } #endif - if (prec || flags & ALT) + if (expt < ndig || flags & ALT) PRINT (&decimal_point, 1); PRINTANDPAD (cp, convbuf + ndig, ndig - expt, zeroes); |