Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-02-15 19:29:15 +0300
committerCorinna Vinschen <corinna@vinschen.de>2010-02-15 19:29:15 +0300
commit38d09c90dec3f80091687f1b6ac253e2ffc1a0b9 (patch)
tree1e423e847072f1479a2f55cf9b0d6ec0feb600b3
parentb85c06ba36da589ef74b0e9ecb129627b5c06fc7 (diff)
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here
as well.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/stdio/vfwprintf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 2ba3d3b59..7729b2c35 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 9cf9c3ec7..d9b9d5679 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);