fixed minor Visual warning

doesn't happen on my environment, though it's a different version of Visual Studio
This commit is contained in:
Yann Collet 2020-11-14 17:25:31 -08:00
parent e0f85f2fc8
commit 99ba44a596

View File

@ -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;