From: W. Felix Handte Date: Tue, 11 Aug 2020 22:24:11 +0000 (-0400) Subject: Fix ZSTD_c_forceAttachDict Bounds X-Git-Tag: v1.4.7~81^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beefdb0d3d904ac0914b1df482799d8be07183ab;p=thirdparty%2Fzstd.git Fix ZSTD_c_forceAttachDict Bounds --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index b24ab55a6..8aa754dba 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -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;