]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Use unsigned long instead to help with some tests
authorScott Baker <scott@perturb.org>
Sat, 5 Jun 2021 17:06:40 +0000 (10:06 -0700)
committerW. Felix Handte <w@felixhandte.com>
Thu, 10 Jun 2021 16:53:07 +0000 (12:53 -0400)
programs/util.c
programs/util.h

index cdfda1ca0b02c8996fbcd501ede029d19daeb830..e7acc6cbb14806b6d67cadfe279f277714b2e7e9 100644 (file)
@@ -121,7 +121,7 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg,
 *  Functions
 ***************************************/
 
-char* humanSize(size_t size, char* str) {
+char* humanSize(unsigned long size, char* str) {
        if (size > 1125899906842624L) {
                snprintf(str, 7, "%.1fP", (float)size / 1125899906842624L);
        } else if (size > 1099511627776L) {
index 8ac930d8cb7b0bad4f536864a92a6b2c1d95ccc6..21e93d7d7aaa3b3e1cac54919b1caa02ec923b55 100644 (file)
@@ -122,7 +122,7 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg, const
 #define STRDUP(s) strdup(s)
 #endif
 
-char* humanSize(size_t size, char* str);
+char* humanSize(unsigned long size, char* str);
 
 /**
  * Calls platform's equivalent of stat() on filename and writes info to statbuf.