]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
More void* issues. Just replacing with BYTE*
authorBimba Shrestha <bimbashrestha@fb.com>
Sat, 14 Dec 2019 00:24:49 +0000 (16:24 -0800)
committerBimba Shrestha <bimbashrestha@fb.com>
Sat, 14 Dec 2019 00:24:49 +0000 (16:24 -0800)
tests/fuzzer.c

index c39969a8d996d844c0edbd546395225c6f4f3b94..d413be04084b0ecbf1574d70af662e4a5f958dd5 100644 (file)
@@ -492,7 +492,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
     DISPLAYLEVEL(3, "test%3d: superblock uncompressable data, too many nocompress superblocks : ", testNb++)
     {
         ZSTD_CCtx* cctx = ZSTD_createCCtx();
-        void* src = CNBuffer; void* dst = compressedBuffer;
+        BYTE* src = CNBuffer; BYTE* dst = compressedBuffer;
         size_t srcSize = 321656; size_t dstCapacity = ZSTD_compressBound(srcSize);
 
         /* This is the number of bytes to stream before ending. This value
@@ -511,7 +511,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
         const size_t compressablePartSize = srcSize/3;
         const size_t uncompressablePartSize = srcSize-compressablePartSize;
         RDG_genBuffer(CNBuffer, compressablePartSize, 0.5, 0.5, seed);
-        RDG_genBuffer((void*)((char*)CNBuffer+compressablePartSize), uncompressablePartSize, 0, 0, seed);
+        RDG_genBuffer(CNBuffer+compressablePartSize, uncompressablePartSize, 0, 0, seed);
 
         /* Setting target block size so that superblock is used */