diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-01-23 19:49:09 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-01-23 19:49:09 +0000 |
commit | e9cd87b82a1f798b379fbdae146c8dde11a3657e (patch) | |
tree | e2d9bafd6829b426d46bdc3d55c27077264ce48f /newlib | |
parent | 4c7b82500d0d04a443106f06fee65afda3874bd4 (diff) | |
download | newlib-e9cd87b82a1f798b379fbdae146c8dde11a3657e.zip newlib-e9cd87b82a1f798b379fbdae146c8dde11a3657e.tar.gz newlib-e9cd87b82a1f798b379fbdae146c8dde11a3657e.tar.bz2 |
2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
that suppressed . for %.0f, 0.1. Check now looks if there
are padding zeroes (expt) in addition to any digits (ndig) to
print.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 7 | ||||
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index a308372..90437ba 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ +2001-01-23 Jeff Johnston <jjohnstn@redhat.com> + + * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix + that suppressed . for %.0f, 0.1. Check now looks if there + are padding zeroes (expt) in addition to any digits (ndig) to + print. + 2001-01-18 Jeff Johnston <jjohnstn@redhat.com> * libc/sys/arc/Makefile.am: New file. diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 34ec689..ab8202f 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -853,7 +853,7 @@ number: if ((dprec = prec) >= 0) } } else if (expt <= 0) { PRINT("0", 1); - if(ndig) { + if(expt || ndig) { PRINT(decimal_point, 1); PAD(-expt, zeroes); PRINT(cp, ndig); |