Oops; flipped a boolean.

This commit is contained in:
Pietro Gagliardi 2019-04-22 23:03:12 -04:00
parent bd1ca240e3
commit 4bd1ba2fa5
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ static void fillFracPart(char *s, int precision, int *start, uint64_t *unsec)
print = 0;
for (i = 0; i < precision; i++) {
digit = *unsec % 10;
print = print || (digit == 0);
print = print || (digit != 0);
if (print) {
s[*start - 1] = "0123456789"[digit];
(*start)--;