* 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:
parent
0da7a27a1b
commit
b85c06ba36
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user