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:
authorJeff Johnston <jjohnstn@redhat.com>2007-04-24 01:55:31 +0400
committerJeff Johnston <jjohnstn@redhat.com>2007-04-24 01:55:31 +0400
commit930b1861ceb0bfd0500defe8316797fcda258fab (patch)
tree665977e821d91d1f8c0f64ccdc5e7f8962bcb8c8 /newlib/libc
parent8aebc414ecad097f0657c774442f07a19ee35253 (diff)
2007-04-23 Brian Dessent <brian@dessent.net>
* libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag has been specified with types 'f', 'F', 'g', or 'G', ensure the trailing decimal is printed.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/stdio/vfprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index 72df0f28a..0e40a3e8f 100644
--- a/newlib/libc/stdio/vfprintf.c
+++ b/newlib/libc/stdio/vfprintf.c
@@ -1235,7 +1235,7 @@ number: if ((dprec = prec) >= 0)
}
} else if (expt <= 0) {
PRINT ("0", 1);
- if(expt || ndig) {
+ if(expt || ndig || (flags & ALT)) {
PRINT (decimal_point, 1);
PAD (-expt, zeroes);
PRINT (cp, ndig);