From: W. Felix Handte Date: Tue, 18 Dec 2018 21:35:57 +0000 (-0800) Subject: Fix Incorrect assert() X-Git-Tag: v1.3.8~13^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d606ee3db248c6df922535bb7aeda973f4a564c;p=thirdparty%2Fzstd.git Fix Incorrect assert() --- diff --git a/lib/decompress/huf_decompress.c b/lib/decompress/huf_decompress.c index 2cc20da22..3f8bd2973 100644 --- a/lib/decompress/huf_decompress.c +++ b/lib/decompress/huf_decompress.c @@ -1140,7 +1140,7 @@ size_t HUF_decompress1X_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, cSrcSize, workSpace, wkspSize); #elif defined(HUF_FORCE_DECOMPRESS_X2) (void)algoNb; - assert(algoNb == 0); + assert(algoNb == 1); return HUF_decompress1X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize); #else