fix extended case combining stableInBuffer with continue() and flush() modes

This commit is contained in:
Yann Collet
2022-01-26 10:31:25 -08:00
parent 270f9bf005
commit c1668a00d2
4 changed files with 65 additions and 29 deletions
+1 -1
View File
@@ -1206,7 +1206,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
DISPLAYLEVEL(3, "test%3i : compress a NULL input with each level : ", testNb++);
{ int level = -1;
ZSTD_CCtx* cctx = ZSTD_createCCtx();
ZSTD_CCtx* const cctx = ZSTD_createCCtx();
if (!cctx) goto _output_error;
for (level = -1; level <= ZSTD_maxCLevel(); ++level) {
CHECK_Z( ZSTD_compress(compressedBuffer, compressedBufferSize, NULL, 0, level) );