aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2020-11-14 17:25:31 -0800
committerYann Collet <cyan@fb.com>2020-11-14 17:25:31 -0800
commit99ba44a596d2b86090fa85bf09f9a2642bfd0001 (patch)
treefd1788143cff2a938d953aa8fa851e075c9c6ff0
parente0f85f2fc8e8868b2623a5344781f269bda7d4ba (diff)
downloadlz4-99ba44a596d2b86090fa85bf09f9a2642bfd0001.tar.gz
fixed minor Visual warning
doesn't happen on my environment, though it's a different version of Visual Studio
-rw-r--r--tests/frametest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/frametest.c b/tests/frametest.c
index 241fd5fb..e613cbf7 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;