diff options
author | Yann Collet <cyan@fb.com> | 2019-01-09 21:45:42 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-01-09 21:45:42 (GMT) |
commit | 186015a5d247d5e48586db1ab51a59f0348a3861 (patch) | |
tree | e0a19645d389be0520ed200def4942a395545355 | |
parent | baed01a9c7703a6d8a68f45b2948a1e84de555e1 (diff) | |
download | lz4-186015a5d247d5e48586db1ab51a59f0348a3861.zip lz4-186015a5d247d5e48586db1ab51a59f0348a3861.tar.gz lz4-186015a5d247d5e48586db1ab51a59f0348a3861.tar.bz2 |
fixed strict C++ compilation
-rw-r--r-- | tests/.gitignore | 1 | ||||
-rw-r--r-- | tests/fuzzer.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/.gitignore b/tests/.gitignore index 9aa42a0..c4f9092 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -10,6 +10,7 @@ fuzzer32 fasttest roundTripTest checkTag +checkFrame # test artefacts tmp* diff --git a/tests/fuzzer.c b/tests/fuzzer.c index 573703c..893ffc1 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -1109,7 +1109,7 @@ static void FUZ_unitTests(int compressionLevel) assert(blockSize < INT_MAX); srcSize = (int)blockSize; assert(targetSize < INT_MAX); - result = LZ4_compress_HC_destSize(&sHC, block, dstBlock, &srcSize, (int)targetSize, 3); + result = LZ4_compress_HC_destSize(&sHC, (const char*)block, (char*)dstBlock, &srcSize, (int)targetSize, 3); DISPLAYLEVEL(4, "cSize=%i; readSize=%i; ", result, srcSize); FUZ_CHECKTEST(result!=4116, "LZ4_compress_HC_destSize() : compression must fill dstBuffer completely, but no more !"); FUZ_CHECKTEST(((char*)dstBlock)[targetSize] != sentinel, "LZ4_compress_HC_destSize()") |