mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 11:11:33 +00:00
parent
30fdb6ff11
commit
90e8b81c3e
1 changed files with 2 additions and 2 deletions
4
nnn.c
4
nnn.c
|
@ -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, "%lu.%0*i%c", size, fdig, rem, U[i]);
|
snprintf(size_buf, 12, "%" PRId64 ".%0*i%c", size, fdig, rem, U[i]);
|
||||||
else
|
else
|
||||||
snprintf(size_buf, 12, "%lu%c", size, U[i]);
|
snprintf(size_buf, 12, "%" PRId64 "%c", size, U[i]);
|
||||||
|
|
||||||
return size_buf;
|
return size_buf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue