From: Yann Collet Date: Sun, 15 Nov 2020 01:25:31 +0000 (-0800) Subject: fixed minor Visual warning X-Git-Tag: upstream/1.9.3~1^2~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99ba44a596d2b86090fa85bf09f9a2642bfd0001;p=platform%2Fupstream%2Flz4.git fixed minor Visual warning doesn't happen on my environment, though it's a different version of Visual Studio --- diff --git a/tests/frametest.c b/tests/frametest.c index 241fd5f..e613cbf 100644 --- a/tests/frametest.c +++ b/tests/frametest.c @@ -1060,7 +1060,7 @@ int fuzzerTests(U32 seed, unsigned nbTests, unsigned startTest, double compressi CHECK(op[dstEndSize] != canaryByte, "LZ4F_compressEnd writes beyond dstCapacity !"); if (LZ4F_isError(flushedSize)) { if (tooSmallDstEnd) /* failure is allowed */ continue; - CHECK(1, "Compression completion failed (error %i : %s)", + CHECK(!tooSmallDstEnd, "Compression completion failed (error %i : %s)", (int)flushedSize, LZ4F_getErrorName(flushedSize)); } op += flushedSize;