Use %zu for size_t, like God intended.
This commit is contained in:
parent
eae1afd9a2
commit
5476ba5545
@ -157,7 +157,7 @@ stat_bytes(size_t bytes)
|
||||
bytes /= 1024;
|
||||
prefix++;
|
||||
}
|
||||
snprintf(str, sizeof str, "%4ju %cB", (uintmax_t)bytes, *prefix);
|
||||
snprintf(str, sizeof str, "%4zu %cB", bytes, *prefix);
|
||||
return (str);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user