]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix Appveyor failure 1896/head
authorNick Terrell <terrelln@fb.com>
Tue, 19 Nov 2019 19:12:26 +0000 (11:12 -0800)
committerNick Terrell <terrelln@fb.com>
Tue, 19 Nov 2019 19:12:26 +0000 (11:12 -0800)
lib/decompress/huf_decompress.c

index fd417088c5c424a68942fcdc2d6372f8c610a32f..12c1fce5151ff4e32c86b27702621c9611dd5e70 100644 (file)
@@ -191,7 +191,7 @@ size_t HUF_readDTableX1_wksp(HUF_DTable* DTable, const void* src, size_t srcSize
             HUF_DEltX1 D;
             D.byte = (BYTE)n;
             D.nbBits = (BYTE)(tableLog + 1 - w);
-            rankVal[w] = uEnd;
+            rankVal[w] = (U32)uEnd;
             if (length < 4) {
                 /* Use length in the loop bound so the compiler knows it is short. */
                 for (u = 0; u < length; ++u)