From: W. Felix Handte Date: Mon, 27 Aug 2018 22:09:25 +0000 (-0700) Subject: Allow Setting Hash and Chain Logs on Contexts with Attached CDict X-Git-Tag: v1.3.6^2~10^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34e0193129cfe2195e4b8b34b9d27ba4de955394;p=thirdparty%2Fzstd.git Allow Setting Hash and Chain Logs on Contexts with Attached CDict --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index ff49b0c5e..e133b37da 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -284,9 +284,11 @@ size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, unsigned v if (cctx->cdict) return ERROR(stage_wrong); return ZSTD_CCtxParam_setParameter(&cctx->requestedParams, param, value); - case ZSTD_p_windowLog: case ZSTD_p_hashLog: case ZSTD_p_chainLog: + return ZSTD_CCtxParam_setParameter(&cctx->requestedParams, param, value); + + case ZSTD_p_windowLog: case ZSTD_p_searchLog: case ZSTD_p_minMatch: case ZSTD_p_targetLength: