]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Allow Setting Hash and Chain Logs on Contexts with Attached CDict
authorW. Felix Handte <w@felixhandte.com>
Mon, 27 Aug 2018 22:09:25 +0000 (15:09 -0700)
committerW. Felix Handte <w@felixhandte.com>
Sat, 29 Sep 2018 00:12:54 +0000 (17:12 -0700)
lib/compress/zstd_compress.c

index ff49b0c5e2368e60fa949a4bc8c18787f5a7b0d8..e133b37da59df602dd936796436476bc024601fe 100644 (file)
@@ -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: