From: bimbashrestha Date: Thu, 22 Aug 2019 20:54:41 +0000 (-0700) Subject: Fixing more test falure errors X-Git-Tag: v1.4.4~1^2~65^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e3ba02cf167cb6660eee70fc5874cddb31defae;p=thirdparty%2Fzstd.git Fixing more test falure errors --- 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