Fixed regression in printing floats with no precision (bug 3447, r=ds).
This commit is contained in:
parent
0fbb87e3b2
commit
c676ecc026
@ -281,7 +281,7 @@ void AddFloat(char **buf_p, size_t &maxlen, double fval, int width, int prec, in
|
|||||||
}
|
}
|
||||||
|
|
||||||
// write the fraction part
|
// write the fraction part
|
||||||
if (maxlen)
|
if (maxlen && prec)
|
||||||
{
|
{
|
||||||
*buf++ = '.';
|
*buf++ = '.';
|
||||||
maxlen--;
|
maxlen--;
|
||||||
|
Loading…
Reference in New Issue
Block a user