Make the variable types match

This commit is contained in:
Scott Baker authored and W. Felix Handte committed 2021-06-10 12:53:07 -04:00
1 parent b6b23dfe64
commit eefdbcd93a
1 file changed
+1 -1
+1 -1
View File
@@ -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';
}