Fix windows implicit casting bugs

This commit is contained in:
George Lu
2018-08-09 10:42:58 -07:00
parent 0f91b039ff
commit df026e159f
2 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -696,7 +696,7 @@ static BMK_return_t BMK_benchMemAdvancedNoAlloc(
}
DISPLAYLEVEL(2, "%2i#\n", cLevel);
} /* Bench */
results.result.cMem = (1 << (comprParams->windowLog)) + ZSTD_sizeof_CCtx(ctx);
results.result.cMem = (1ULL << (comprParams->windowLog)) + ZSTD_sizeof_CCtx(ctx);
results.error = 0;
return results;
}
@@ -731,7 +731,7 @@ BMK_return_t BMK_benchMemAdvanced(const void* srcBuffer, size_t srcSize,
void* resultBuffer = malloc(srcSize);
BMK_return_t results;
BMK_return_t results = { { 0, 0, 0, 0 }, 0 };
int allocationincomplete;
if(!dstCapacity) {