]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed one more minor cast issue
authorYann Collet <cyan@fb.com>
Tue, 29 Dec 2020 19:44:37 +0000 (11:44 -0800)
committerYann Collet <cyan@fb.com>
Tue, 29 Dec 2020 19:44:37 +0000 (11:44 -0800)
can't use address calculation with `void*`

tests/fuzzer.c

index d8199300b3fbaf41d5a04f843f1041c6e436acda..88c879c6cdf22e7949e7ca81750b6c59eb2a0f9e 100644 (file)
@@ -1584,7 +1584,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
             if (i == segs/2) {
                 /* insert skippable frame */
                 size_t const skippableSize =
-                    ZSTD_writeSkippableFrame(compressedBuffer + off, compressedBufferSize,
+                    ZSTD_writeSkippableFrame((BYTE*)compressedBuffer + off, compressedBufferSize,
                                              skipBuff, skipLen, seed % 15);
                 CHECK_Z(skippableSize);
                 off += skippableSize;