fix Visual Studio projects

This commit is contained in:
Yann Collet
2015-10-30 06:40:22 +01:00
parent f8eaf0e158
commit 4114f95ce9
11 changed files with 72 additions and 28 deletions
+2 -2
View File
@@ -419,7 +419,7 @@ static int BMK_benchOneFile(char* inFileName, int cLevel)
U64 inFileSize;
size_t benchedSize, readSize;
void* srcBuffer;
int result;
int result=0;
/* Check file existence */
inFile = fopen(inFileName, "rb");
@@ -476,7 +476,7 @@ static int BMK_syntheticTest(int cLevel, double compressibility)
{
size_t benchedSize = 10000000;
void* srcBuffer = malloc(benchedSize);
int result;
int result=0;
char name[20] = {0};
/* Memory allocation */
+1 -1
View File
@@ -520,7 +520,7 @@ unsigned long long FIO_decompressFilename(const char* output_filename, const cha
ZSTD_resetDCtx(dctx);
toRead = ZSTD_nextSrcSizeToDecompress(dctx) - sizeof(ZSTD_magicNumber);
if (toRead > MAXHEADERSIZE) EXM_THROW(30, "Not enough memory to read header");
sizeCheck = fread(header+sizeof(ZSTD_magicNumber), (size_t)1, toRead, finput);
sizeCheck = fread(&header[sizeof(ZSTD_magicNumber)], 1, toRead, finput);
if (sizeCheck != toRead) EXM_THROW(31, "Read error : cannot read header");
sizeCheck = ZSTD_decompressContinue(dctx, NULL, 0, header, sizeof(ZSTD_magicNumber)+toRead); // Decode frame header
if (ZSTD_isError(sizeCheck)) EXM_THROW(32, "Error decoding header");