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
|
||||
if (maxlen)
|
||||
if (maxlen && prec)
|
||||
{
|
||||
*buf++ = '.';
|
||||
maxlen--;
|
||||
|
|
Loading…
Reference in New Issue
Block a user