mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
Make the variable types match
This commit is contained in:
committed by
W. Felix Handte
parent
b6b23dfe64
commit
eefdbcd93a
@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user