diff options
author | Yann Collet <cyan@fb.com> | 2019-04-13 00:03:28 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-04-13 00:03:28 (GMT) |
commit | c7554c3004e11b3d706143917f33783b1a2e9a29 (patch) | |
tree | d82ea9d1ba1d409dbaeea80f8270003c88c461f6 /tests | |
parent | dd43b913a292e5404aa8bc981ad11223f216d898 (diff) | |
download | lz4-c7554c3004e11b3d706143917f33783b1a2e9a29.zip lz4-c7554c3004e11b3d706143917f33783b1a2e9a29.tar.gz lz4-c7554c3004e11b3d706143917f33783b1a2e9a29.tar.bz2 |
fixed minor Visual conversion warnings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fullbench.c | 2 |
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); |