refactored bench.c

for clarity and safety, especially at interface level
This commit is contained in:
Yann Collet
2018-08-23 14:21:18 -07:00
parent 77e805e3db
commit 2e45badff4
3 changed files with 587 additions and 475 deletions
+1 -2
View File
@@ -1322,8 +1322,7 @@ static size_t ZSTD_resetCCtx_usingCDict(ZSTD_CCtx* cctx,
}
/* copy dictionary offsets */
{
ZSTD_matchState_t const* srcMatchState = &cdict->matchState;
{ ZSTD_matchState_t const* srcMatchState = &cdict->matchState;
ZSTD_matchState_t* dstMatchState = &cctx->blockState.matchState;
dstMatchState->window = srcMatchState->window;
dstMatchState->nextToUpdate = srcMatchState->nextToUpdate;