]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Attempt to fix a failing test with help from @aqrit
authorScott Baker <scott@perturb.org>
Mon, 7 Jun 2021 20:53:55 +0000 (13:53 -0700)
committerW. Felix Handte <w@felixhandte.com>
Thu, 10 Jun 2021 16:53:07 +0000 (12:53 -0400)
programs/util.c

index 934ec526d6011be1721669248b4583d96adaf9a3..6916139405a70b1323f5c4f7c49ada7c8b8f3b89 100644 (file)
@@ -139,7 +139,7 @@ char* humanSize(unsigned long long size, char* str) {
     } else if (size > 1024) {
         snprintf(str, 7, "%.1fK", (float)size / 1024);
     } else if (size <= 1024) {
-        snprintf(str, 7, "%lluB", size);
+        snprintf(str, 7, "%uB", (unsigned)size);
     }
 
     return str;