]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
minor fix casting for Visual 2306/head
authorYann Collet <cyan@fb.com>
Mon, 14 Sep 2020 18:46:23 +0000 (11:46 -0700)
committerYann Collet <cyan@fb.com>
Mon, 14 Sep 2020 18:46:23 +0000 (11:46 -0700)
tests/fuzzer.c

index e42f66d3b14c329fbdadd04d0cc3224cdde89f6d..8929c8fb396deedf40f85d8ead28c59695e9c0dd 100644 (file)
@@ -444,8 +444,8 @@ static int basicUnitTests(U32 const seed, double compressibility)
         ZSTD_inBuffer inb = { CNBuffer, CNBuffSize, 0 };
         ZSTD_outBuffer outb = { compressedBuffer, compressedBufferSize, 0 };
         if (cctx==NULL) goto _output_error;
-        CHECK( ZSTD_isError( ZSTD_compressStream2(cctx, &outb, &inb,  3) ) );  /* must fail */
-        CHECK( ZSTD_isError( ZSTD_compressStream2(cctx, &outb, &inb, -1) ) );  /* must fail */
+        CHECK( ZSTD_isError( ZSTD_compressStream2(cctx, &outb, &inb, (ZSTD_EndDirective) 3) ) );  /* must fail */
+        CHECK( ZSTD_isError( ZSTD_compressStream2(cctx, &outb, &inb, (ZSTD_EndDirective)-1) ) );  /* must fail */
         ZSTD_freeCCtx(cctx);
     }
     DISPLAYLEVEL(3, "OK \n");