diff options
author | Yann Collet <cyan@fb.com> | 2019-04-17 22:44:14 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-04-17 22:44:14 (GMT) |
commit | 8f0e7440633b956484626a432af3eae70c436419 (patch) | |
tree | 962897129b9b0fe5319918e031432c3b51181a62 | |
parent | 5acfb15df066ab77301c32064b28ec9b3e571d67 (diff) | |
download | lz4-8f0e7440633b956484626a432af3eae70c436419.zip lz4-8f0e7440633b956484626a432af3eae70c436419.tar.gz lz4-8f0e7440633b956484626a432af3eae70c436419.tar.bz2 |
fuzzer: fix explicit cast for C++
-rw-r--r-- | tests/fuzzer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fuzzer.c b/tests/fuzzer.c index 0eece15..234be7c 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -487,7 +487,7 @@ static int FUZ_test(U32 seed, U32 nbCycles, const U32 startCycle, const double c /* Decompression tests */ /* Test decompress_fast() with input buffer size exactly correct => must not read out of bound */ - { char* const cBuffer_exact = malloc((size_t)compressedSize); + { char* const cBuffer_exact = (char*)malloc((size_t)compressedSize); assert(cBuffer_exact != NULL); memcpy(cBuffer_exact, compressedBuffer, compressedSize); |