Fix cdict compressor repcodes

This commit is contained in:
Nick Terrell
2017-12-13 11:31:20 -08:00
parent ac8e022806
commit 22727a7467
2 changed files with 50 additions and 0 deletions
+6
View File
@@ -1033,6 +1033,12 @@ static size_t ZSTD_copyCCtx_internal(ZSTD_CCtx* dstCCtx,
/* copy entropy tables */
memcpy(dstCCtx->entropy, srcCCtx->entropy, sizeof(ZSTD_entropyCTables_t));
/* copy repcodes */
{
int i;
for (i = 0; i < ZSTD_REP_NUM; ++i)
dstCCtx->seqStore.rep[i] = srcCCtx->seqStore.rep[i];
}
return 0;
}