From: inikep Date: Mon, 4 Apr 2016 13:43:45 +0000 (+0200) Subject: fixed -Werror,-Wconversion warning X-Git-Tag: v0.6.0^2~17^2~17^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb70c8ab90f3cd439ff37dcd4675eee892b2198c;p=thirdparty%2Fzstd.git fixed -Werror,-Wconversion warning --- diff --git a/lib/zstd_opt.h b/lib/zstd_opt.h index d868d3cd2..145570031 100644 --- a/lib/zstd_opt.h +++ b/lib/zstd_opt.h @@ -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 */