* libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant

decimal point in case the float argument is an integral value.
This commit is contained in:
Corinna Vinschen 2010-02-15 16:10:28 +00:00
parent 0da7a27a1b
commit b85c06ba36
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.
2010-02-11 Craig Howland <howland@LGSInnovations.com>
* libc/include/machine/ieeefp.h: isfinite macro modified to run faster

View File

@ -1578,7 +1578,7 @@ number: if ((dprec = prec) >= 0)
cp = convbuf + ndig;
}
#endif
if (prec || flags & ALT)
if (expt < ndig || flags & ALT)
PRINT (decimal_point, decp_len);
PRINTANDPAD (cp, convbuf + ndig,
ndig - expt, zeroes);