fix minor explicit cast
authorYann Collet <cyan@fb.com>
Sat, 31 Oct 2020 08:55:04 +0000 (01:55 -0700)
committerYann Collet <cyan@fb.com>
Sat, 31 Oct 2020 08:55:04 +0000 (01:55 -0700)
tests/fuzzer.c

index 3eb57899bcd45be80cc5975b82b35162b8690e27..84f969372afc6c078e1343453b23d41a45fd2b63 100644 (file)
@@ -1208,7 +1208,7 @@ static void FUZ_unitTests(int compressionLevel)
             char           c2;
             LZ4_streamHC_t hc3;
         } shct;
-        shct* const shc = malloc(sizeof(*shc));
+        shct* const shc = (shct*)malloc(sizeof(*shc));
         assert(shc != NULL);
         memset(shc, 0, sizeof(*shc));
         DISPLAYLEVEL(3, "hc1(%p) hc2(%p) hc3(%p) size(0x%x): ",