diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-04-23 21:55:31 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-04-23 21:55:31 +0000 |
commit | 930b1861ceb0bfd0500defe8316797fcda258fab (patch) | |
tree | 665977e821d91d1f8c0f64ccdc5e7f8962bcb8c8 /newlib/libc/stdio/vfprintf.c | |
parent | 8aebc414ecad097f0657c774442f07a19ee35253 (diff) | |
download | cygnal-930b1861ceb0bfd0500defe8316797fcda258fab.tar.gz cygnal-930b1861ceb0bfd0500defe8316797fcda258fab.tar.bz2 cygnal-930b1861ceb0bfd0500defe8316797fcda258fab.zip |
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/stdio/vfprintf.c')
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 2 |
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); |