From fc428ab3500fb4a197b006aef074270aed3b37b6 Mon Sep 17 00:00:00 2001 From: Paul Cruz Date: Wed, 14 Jun 2017 13:26:19 -0700 Subject: [PATCH] changing formatting again --- programs/fileio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/programs/fileio.c b/programs/fileio.c index 9d905062..2708176c 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -865,9 +865,9 @@ int FIO_compressFilename(const char* dstFileName, const char* srcFileName, typedef struct { int numActualFrames; int numSkippableFrames; - unsigned long decompressedSize; + unsigned long long decompressedSize; int canComputeDecompSize; - unsigned long compressedSize; + unsigned long long compressedSize; int usesCheck; } fileInfo_t; @@ -899,7 +899,7 @@ int getFileInfo(fileInfo_t* info, const char* inFileName){ if(srcFile==NULL){ return 1; } - info->compressedSize = UTIL_getFileSize(inFileName); + info->compressedSize = (unsigned long long)UTIL_getFileSize(inFileName); info->decompressedSize = 0; info->numActualFrames = 0; info-> numSkippableFrames = 0; @@ -1018,9 +1018,9 @@ void displayInfo(const char* inFileName, fileInfo_t* info, int displayLevel){ else{ DISPLAY("# Zstandard Frames: %d\n", info->numActualFrames); DISPLAY("# Skippable Frames: %d\n", info->numSkippableFrames); - DISPLAY("Compressed Size: %.2f MB (%lu B)\n", compressedSizeMB, info->compressedSize); + DISPLAY("Compressed Size: %.2f MB (%llu B)\n", compressedSizeMB, info->compressedSize); if(info->canComputeDecompSize){ - DISPLAY("Decompressed Size: %.2f MB (%lu B)\n", decompressedSizeMB, info->decompressedSize); + DISPLAY("Decompressed Size: %.2f MB (%llu B)\n", decompressedSizeMB, info->decompressedSize); DISPLAY("Ratio: %.4f\n", compressedSizeMB/decompressedSizeMB); } if(info->usesCheck){