]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed -Werror,-Wconversion warning
authorinikep <inikep@gmail.com>
Mon, 4 Apr 2016 13:43:45 +0000 (15:43 +0200)
committerinikep <inikep@gmail.com>
Mon, 4 Apr 2016 13:43:45 +0000 (15:43 +0200)
lib/zstd_opt.h

index d868d3cd264403f8791f643e15194c87649d7166..145570031e77e6962aa71a0da9f12f68d20bca8c 100644 (file)
@@ -178,7 +178,7 @@ MEM_STATIC void ZSTD_updatePrice(seqStore_t* seqStorePtr, U32 litLength, const B
 
     /* match offset */
     seqStorePtr->offCodeSum++;
-    BYTE offCode = ZSTD_highbit(offset+1);
+    BYTE offCode = (BYTE)ZSTD_highbit(offset+1);
     seqStorePtr->offCodeFreq[offCode]++;
 
     /* match Length */