Fixing more test falure errors
This commit is contained in:
@@ -2306,12 +2306,12 @@ static size_t ZSTD_compressBlock_internal(ZSTD_CCtx* zc,
|
|||||||
|
|
||||||
out:
|
out:
|
||||||
if (!ZSTD_isError(cSize) && cSize > 1) {
|
if (!ZSTD_isError(cSize) && cSize > 1) {
|
||||||
assert(!ZSTD_isRLE(src, srcSize));
|
|
||||||
|
|
||||||
/* confirm repcodes and entropy tables when emitting a compressed block */
|
/* confirm repcodes and entropy tables when emitting a compressed block */
|
||||||
ZSTD_compressedBlockState_t* const tmp = zc->blockState.prevCBlock;
|
ZSTD_compressedBlockState_t* const tmp = zc->blockState.prevCBlock;
|
||||||
zc->blockState.prevCBlock = zc->blockState.nextCBlock;
|
zc->blockState.prevCBlock = zc->blockState.nextCBlock;
|
||||||
zc->blockState.nextCBlock = tmp;
|
zc->blockState.nextCBlock = tmp;
|
||||||
|
|
||||||
|
assert(!ZSTD_isRLE(src, srcSize));
|
||||||
}
|
}
|
||||||
/* We check that dictionaries have offset codes available for the first
|
/* We check that dictionaries have offset codes available for the first
|
||||||
* block. After the first block, the offcode table might not have large
|
* block. After the first block, the offcode table might not have large
|
||||||
|
|||||||
Reference in New Issue
Block a user