]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed minor nit as per @terrelln's comments
authorYann Collet <cyan@fb.com>
Fri, 9 Feb 2018 17:46:08 +0000 (09:46 -0800)
committerYann Collet <cyan@fb.com>
Fri, 9 Feb 2018 17:46:08 +0000 (09:46 -0800)
lib/compress/zstd_compress.c
lib/compress/zstdmt_compress.c

index 9e768edd3badf2df4ed191e87b827d1df5ad73e4..0994d78f1ab0e34214b94dbbf0699088a5418c3b 100644 (file)
@@ -251,7 +251,7 @@ static int ZSTD_isUpdateAuthorized(ZSTD_cParameter param)
     case ZSTD_p_compressionStrategy:
         return 1;
 
-    case ZSTD_p_format :
+    case ZSTD_p_format:
     case ZSTD_p_windowLog:
     case ZSTD_p_contentSizeFlag:
     case ZSTD_p_checksumFlag:
@@ -265,10 +265,7 @@ static int ZSTD_isUpdateAuthorized(ZSTD_cParameter param)
     case ZSTD_p_ldmMinMatch:
     case ZSTD_p_ldmBucketSizeLog:
     case ZSTD_p_ldmHashEveryLog:
-        return 0;
-
     default:
-        assert(0);
         return 0;
     }
 }
index 4f327c07c5adc554162eefd917801ddd48b2c07f..7ae27888cd885c0991110066a04ef1792eea49c4 100644 (file)
@@ -677,8 +677,8 @@ void ZSTDMT_updateCParams_whileCompressing(ZSTDMT_CCtx* mtctx, int compressionLe
                 compressionLevel);
     mtctx->params.compressionLevel = compressionLevel;
     if (compressionLevel != ZSTD_CLEVEL_CUSTOM)
-        cParams = ZSTD_getCParams(compressionLevel, mtctx->frameContentSize, 0 /* should be dictSize */ );
-    cParams. windowLog = saved_wlog;
+        cParams = ZSTD_getCParams(compressionLevel, mtctx->frameContentSize, 0 /* dictSize */ );
+    cParams.windowLog = saved_wlog;
     mtctx->params.cParams = cParams;
 }