Fixed zero precision bug in atcprintf (bug 3242, r=sawce).
This commit is contained in:
parent
2249f1e70c
commit
d97ab913cf
|
@ -240,7 +240,7 @@ void AddFloat(U **buf_p, size_t &maxlen, double fval, int width, int prec, int f
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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