Fixed minor visual warning

dev
Yann Collet 2015-08-26 23:10:09 +01:00
parent 352ab88aea
commit 866a3c3158
1 changed files with 1 additions and 1 deletions

View File

@ -1537,7 +1537,7 @@ static size_t FSE_lookBits(FSE_DStream_t* bitD, U32 nbBits)
static size_t FSE_lookBitsFast(FSE_DStream_t* bitD, U32 nbBits) /* only if nbBits >= 1 !! */
{
const U32 bitMask = sizeof(bitD->bitContainer)*8 - 1;
return (bitD->bitContainer << (bitD->bitsConsumed & bitMask)) >> (-nbBits & bitMask);
return (bitD->bitContainer << (bitD->bitsConsumed & bitMask)) >> (((bitMask+1)-nbBits) & bitMask);
}
static void FSE_skipBits(FSE_DStream_t* bitD, U32 nbBits)