summaryrefslogtreecommitdiffstats
path: root/tests/fullbench.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2019-04-13 00:03:28 (GMT)
committerYann Collet <cyan@fb.com>2019-04-13 00:03:28 (GMT)
commitc7554c3004e11b3d706143917f33783b1a2e9a29 (patch)
treed82ea9d1ba1d409dbaeea80f8270003c88c461f6 /tests/fullbench.c
parentdd43b913a292e5404aa8bc981ad11223f216d898 (diff)
downloadlz4-c7554c3004e11b3d706143917f33783b1a2e9a29.zip
lz4-c7554c3004e11b3d706143917f33783b1a2e9a29.tar.gz
lz4-c7554c3004e11b3d706143917f33783b1a2e9a29.tar.bz2
fixed minor Visual conversion warnings
Diffstat (limited to 'tests/fullbench.c')
-rw-r--r--tests/fullbench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fullbench.c b/tests/fullbench.c
index 456c916..1a52aab 100644
--- a/tests/fullbench.c
+++ b/tests/fullbench.c
@@ -389,7 +389,7 @@ int fullSpeedBench(const char** fileNamesTable, int nbFiles)
/* Allocation */
chunkP = (struct chunkParameters*) malloc(((benchedSize / (size_t)g_chunkSize)+1) * sizeof(struct chunkParameters));
orig_buff = (char*) malloc(benchedSize);
- nbChunks = (int) ((benchedSize + (g_chunkSize-1)) / g_chunkSize);
+ nbChunks = (int) ((benchedSize + (size_t)g_chunkSize - 1) / (size_t)g_chunkSize);
maxCompressedChunkSize = LZ4_compressBound(g_chunkSize);
compressedBuffSize = nbChunks * maxCompressedChunkSize;
compressed_buff = (char*)malloc((size_t)compressedBuffSize);