diff --git a/src/unrar/unpack.cpp b/src/unrar/unpack.cpp index 350d8951f0..178fa714e5 100644 --- a/src/unrar/unpack.cpp +++ b/src/unrar/unpack.cpp @@ -1156,7 +1156,7 @@ void Unpack::MakeDecodeTables(byte *LengthTable,DecodeTable *Dec,uint Size) // Find the upper limit for current bit field and adjust the bit length // accordingly if necessary. - while (BitField>=Dec->DecodeLen[CurBitLength] && CurBitLengthDecodeLen)) + while (CurBitLengthDecodeLen) && BitField>=Dec->DecodeLen[CurBitLength] ) CurBitLength++; // Translation of right aligned bit string to bit length.