Fix compilation warning

This commit is contained in:
Arun Prakash Jana 2018-03-05 00:57:31 +05:30
parent 7654a2e0c6
commit 30fdb6ff11
No known key found for this signature in database
GPG key ID: A75979F35C080412

4
nnn.c
View file

@ -1465,9 +1465,9 @@ coolsize(off_t size)
if (i < 3 && rem >= frac) { size++; rem = 0; } if (i < 3 && rem >= frac) { size++; rem = 0; }
if (i > 0) if (i > 0)
snprintf(size_buf, 12, "%" PRId64 ".%0*i%c", size, fdig, rem, U[i]); snprintf(size_buf, 12, "%lu.%0*i%c", size, fdig, rem, U[i]);
else else
snprintf(size_buf, 12, "%" PRId64 "%c", size, U[i]); snprintf(size_buf, 12, "%lu%c", size, U[i]);
return size_buf; return size_buf;
} }