Skip to content

Commit 1958fff

Browse files
authored
Merge pull request #4199 from jimis/fix_filesize_print
Fix printing of filesize if >4GB
2 parents b0a179d + 194062a commit 1958fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/zstdcli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ static void printDefaultCParams(const char* filename, const char* dictFileName,
696696
unsigned long long fileSize = UTIL_getFileSize(filename);
697697
const size_t dictSize = dictFileName != NULL ? (size_t)UTIL_getFileSize(dictFileName) : 0;
698698
const ZSTD_compressionParameters cParams = ZSTD_getCParams(cLevel, fileSize, dictSize);
699-
if (fileSize != UTIL_FILESIZE_UNKNOWN) DISPLAY("%s (%u bytes)\n", filename, (unsigned)fileSize);
699+
if (fileSize != UTIL_FILESIZE_UNKNOWN) DISPLAY("%s (%llu bytes)\n", filename, fileSize);
700700
else DISPLAY("%s (src size unknown)\n", filename);
701701
DISPLAY(" - windowLog : %u\n", cParams.windowLog);
702702
DISPLAY(" - chainLog : %u\n", cParams.chainLog);

0 commit comments

Comments
 (0)