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.
This commit is contained in:
parent
8aebc414ec
commit
930b1861ce
|
@ -1235,7 +1235,7 @@ number: if ((dprec = prec) >= 0)
|
||||||
}
|
}
|
||||||
} else if (expt <= 0) {
|
} else if (expt <= 0) {
|
||||||
PRINT ("0", 1);
|
PRINT ("0", 1);
|
||||||
if(expt || ndig) {
|
if(expt || ndig || (flags & ALT)) {
|
||||||
PRINT (decimal_point, 1);
|
PRINT (decimal_point, 1);
|
||||||
PAD (-expt, zeroes);
|
PAD (-expt, zeroes);
|
||||||
PRINT (cp, ndig);
|
PRINT (cp, ndig);
|
||||||
|
|
Loading…
Reference in New Issue