]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix ZSTD_c_forceAttachDict Bounds
authorW. Felix Handte <w@felixhandte.com>
Tue, 11 Aug 2020 22:24:11 +0000 (18:24 -0400)
committerW. Felix Handte <w@felixhandte.com>
Thu, 10 Sep 2020 22:51:52 +0000 (18:51 -0400)
lib/compress/zstd_compress.c

index b24ab55a63539dd1ec3b0104ac7cfdddd2179c59..8aa754dba102230b0152ae3f1a6e361ea79cff03 100644 (file)
@@ -401,7 +401,7 @@ ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter param)
         return bounds;
 
     case ZSTD_c_forceAttachDict:
-        ZSTD_STATIC_ASSERT(ZSTD_dictDefaultAttach < ZSTD_dictForceCopy);
+        ZSTD_STATIC_ASSERT(ZSTD_dictDefaultAttach < ZSTD_dictForceLoad);
         bounds.lowerBound = ZSTD_dictDefaultAttach;
         bounds.upperBound = ZSTD_dictForceLoad;       /* note : how to ensure at compile time that this is the highest value enum ? */
         return bounds;