]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Make the variable types match
authorScott Baker <scott@perturb.org>
Sat, 5 Jun 2021 05:02:32 +0000 (22:02 -0700)
committerW. Felix Handte <w@felixhandte.com>
Thu, 10 Jun 2021 16:53:07 +0000 (12:53 -0400)
programs/util.c

index 5aec1118423bfde55d196c2240b51ede45116651..6d04b8fb77e846627a475f122f1ea5f56177cc04 100644 (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';
        }