Use Fast Reset in LZ4F Again

This commit is contained in:
W. Felix Handte 2018-04-16 20:23:19 -04:00
parent 61c7ceffed
commit 0a2abacd90

View File

@ -550,7 +550,7 @@ static void LZ4F_applyCDict(void* ctx,
LZ4_attach_dictionary((LZ4_stream_t *)ctx, cdict ? cdict->fastCtx : NULL);
} else {
LZ4HC_CCtx_internal *internal_ctx = &((LZ4_streamHC_t *)ctx)->internal_donotuse;
LZ4_resetStreamHC((LZ4_streamHC_t*)ctx, level);
LZ4_resetStreamHC_fast((LZ4_streamHC_t*)ctx, level);
internal_ctx->dictCtx = cdict ? &(cdict->HCCtx->internal_donotuse) : NULL;
}
}