From dec1a78d3e7b9006565f802bc3b8772799f13677 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 14 Sep 2020 11:46:23 -0700 Subject: [PATCH] minor fix casting for Visual --- tests/fuzzer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fuzzer.c b/tests/fuzzer.c index e42f66d3..8929c8fb 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -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");