Fixed regression in printing floats with no precision (bug 3447, r=ds).

This commit is contained in:
David Anderson 2009-01-07 19:23:24 -05:00
parent 0fbb87e3b2
commit c676ecc026

View File

@ -281,7 +281,7 @@ void AddFloat(char **buf_p, size_t &maxlen, double fval, int width, int prec, in
}
// write the fraction part
if (maxlen)
if (maxlen && prec)
{
*buf++ = '.';
maxlen--;