2000-08-16 Eric Fifer <efifer@sanwaint.com>

* libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
This commit is contained in:
Jeff Johnston 2000-08-16 18:30:40 +00:00
parent e3c9eeaf79
commit 5bacbf109f
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2000-08-16 Eric Fifer <efifer@sanwaint.com>
* libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
2000-08-09 Nick Clifton <nickc@cygnus.com>
* libc/sys/arm/setjmp.S: Recode to clean up function prologues and

View File

@ -805,9 +805,11 @@ number: if ((dprec = prec) >= 0)
}
} else if (expt <= 0) {
PRINT("0", 1);
if(ndig) {
PRINT(decimal_point, 1);
PAD(-expt, zeroes);
PRINT(cp, ndig);
}
} else if (expt >= ndig) {
PRINT(cp, ndig);
PAD(expt - ndig, zeroes);