From 0e3ba02cf167cb6660eee70fc5874cddb31defae Mon Sep 17 00:00:00 2001 From: bimbashrestha Date: Thu, 22 Aug 2019 13:54:41 -0700 Subject: [PATCH] Fixing more test falure errors --- lib/compress/zstd_compress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 560548a97..6e02da4f0 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -2306,12 +2306,12 @@ static size_t ZSTD_compressBlock_internal(ZSTD_CCtx* zc, out: if (!ZSTD_isError(cSize) && cSize > 1) { - assert(!ZSTD_isRLE(src, srcSize)); - /* confirm repcodes and entropy tables when emitting a compressed block */ ZSTD_compressedBlockState_t* const tmp = zc->blockState.prevCBlock; zc->blockState.prevCBlock = zc->blockState.nextCBlock; zc->blockState.nextCBlock = tmp; + + assert(!ZSTD_isRLE(src, srcSize)); } /* We check that dictionaries have offset codes available for the first * block. After the first block, the offcode table might not have large -- 2.47.3