fix g++ warning

This commit is contained in:
Yann Collet
2015-12-16 03:37:21 +01:00
parent a52c98d23a
commit 880486ff05
+1 -1
View File
@@ -435,7 +435,7 @@ static void BMK_benchFileTable(const char** fileNamesTable, unsigned nbFiles, in
if (benchedSize < totalSizeToLoad)
DISPLAY("Not enough memory; testing %u MB only...\n", (U32)(benchedSize >> 20));
srcBuffer = malloc(benchedSize);
fileSizes = malloc(nbFiles * sizeof(size_t));
fileSizes = (size_t*)malloc(nbFiles * sizeof(size_t));
if (!srcBuffer) EXM_THROW(12, "not enough memory");
/* Load input buffer */