mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
Make the variable types match
This commit is contained in:
parent
b6b23dfe64
commit
eefdbcd93a
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ char* humanSize(long size, char* str) {
|
|||
} else if (size > 1024) {
|
||||
snprintf(str, 7, "%.1fK", (float)size / 1024);
|
||||
} else if (size >= 0) {
|
||||
snprintf(str, 7, "%dB", size);
|
||||
snprintf(str, 7, "%dB", 0);
|
||||
} else {
|
||||
str[0] = '\0';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue