From 194062a4e73fef16e29e9175426fe1a3b9b23a73 Mon Sep 17 00:00:00 2001 From: Dimitrios Apostolou Date: Wed, 20 Nov 2024 16:11:17 +0100 Subject: [PATCH] Fix printing of filesize if >4GB --- programs/zstdcli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 8f94352fee..90e090b588 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -696,7 +696,7 @@ static void printDefaultCParams(const char* filename, const char* dictFileName, unsigned long long fileSize = UTIL_getFileSize(filename); const size_t dictSize = dictFileName != NULL ? (size_t)UTIL_getFileSize(dictFileName) : 0; const ZSTD_compressionParameters cParams = ZSTD_getCParams(cLevel, fileSize, dictSize); - if (fileSize != UTIL_FILESIZE_UNKNOWN) DISPLAY("%s (%u bytes)\n", filename, (unsigned)fileSize); + if (fileSize != UTIL_FILESIZE_UNKNOWN) DISPLAY("%s (%llu bytes)\n", filename, fileSize); else DISPLAY("%s (src size unknown)\n", filename); DISPLAY(" - windowLog : %u\n", cParams.windowLog); DISPLAY(" - chainLog : %u\n", cParams.chainLog);