fuzzer: fix explicit cast for C++
authorYann Collet <cyan@fb.com>
Wed, 17 Apr 2019 22:44:14 +0000 (15:44 -0700)
committerYann Collet <cyan@fb.com>
Wed, 17 Apr 2019 22:44:14 +0000 (15:44 -0700)
tests/fuzzer.c

index 0eece15..234be7c 100644 (file)
@@ -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);