]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix failing Travis tests 1136/head
authorNick Terrell <terrelln@fb.com>
Tue, 15 May 2018 16:46:20 +0000 (09:46 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 15 May 2018 16:46:20 +0000 (09:46 -0700)
lib/compress/zstd_opt.c

index 76144f7303c0fdc713a277756e17f4d23f3e34ee..3a48187c59f1a985800f3aed46d69c9881941031 100644 (file)
@@ -53,7 +53,7 @@ static void ZSTD_rescaleFreqs(optState_t* const optPtr,
                 for (lit=0; lit<=MaxLit; lit++) {
                     U32 const scaleLog = 11;   /* scale to 2K */
                     U32 const bitCost = HUF_getNbBits(optPtr->symbolCosts->hufCTable, lit);
-                    assert(bitCost < scaleLog);
+                    assert(bitCost <= scaleLog);
                     optPtr->litFreq[lit] = bitCost ? 1 << (scaleLog-bitCost) : 1 /*minimum to calculate cost*/;
                     optPtr->litSum += optPtr->litFreq[lit];
             }   }