diff options
author | Yann Collet <cyan@fb.com> | 2019-05-29 20:14:52 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-05-29 20:14:52 (GMT) |
commit | 76116495bfd2096f06c923ebe865c59e42f32b07 (patch) | |
tree | cc52a0d4c70bd6c4879d4209d798fff0b438c198 /tests/fuzzer.c | |
parent | c5bcb4d68b44bd276523cd354424b89efe511b76 (diff) | |
download | lz4-76116495bfd2096f06c923ebe865c59e42f32b07.zip lz4-76116495bfd2096f06c923ebe865c59e42f32b07.tar.gz lz4-76116495bfd2096f06c923ebe865c59e42f32b07.tar.bz2 |
some more minor conversion warnings fixes
Diffstat (limited to 'tests/fuzzer.c')
-rw-r--r-- | tests/fuzzer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/fuzzer.c b/tests/fuzzer.c index 8107cb8..9225e5b 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -1015,10 +1015,10 @@ static void FUZ_unitTests(int compressionLevel) /* in-place compression test */ DISPLAYLEVEL(3, "in-place compression using LZ4_compress_default() :"); - { size_t const sampleSize = 65 KB; - size_t const maxCSize = LZ4_COMPRESSBOUND(sampleSize); - size_t const outSize = LZ4_COMPRESS_INPLACE_BUFFER_SIZE(maxCSize); - size_t const startIndex = outSize - sampleSize; + { int const sampleSize = 65 KB; + int const maxCSize = LZ4_COMPRESSBOUND(sampleSize); + int const outSize = LZ4_COMPRESS_INPLACE_BUFFER_SIZE(maxCSize); + int const startIndex = outSize - sampleSize; char* const startInput = testCompressed + startIndex; XXH32_hash_t const crcOrig = XXH32(testInput, sampleSize, 0); int cSize; @@ -1028,7 +1028,7 @@ static void FUZ_unitTests(int compressionLevel) cSize = LZ4_compress_default(startInput, testCompressed, sampleSize, maxCSize); assert(cSize != 0); /* ensure compression is successful */ assert(maxCSize < INT_MAX); - assert(cSize <= (int)maxCSize); + assert(cSize <= maxCSize); /* decompress and verify */ { int const dSize = LZ4_decompress_safe(testCompressed, testVerify, cSize, testInputSize); assert(dSize == (int)sampleSize); /* correct size */ |