Skip to content

Commit

Permalink
Merge pull request #4199 from jimis/fix_filesize_print
Browse files Browse the repository at this point in the history
Fix printing of filesize if >4GB
  • Loading branch information
Cyan4973 authored Nov 25, 2024
2 parents b0a179d + 194062a commit 1958fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/zstdcli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1958fff

Please sign in to comment.