From 2efa10565ac395d2ce9a679ead46e70fb2f963eb Mon Sep 17 00:00:00 2001 From: Igor Pavlov Date: Sun, 30 Apr 2017 00:00:00 +0000 Subject: 17.00 --- CPP/7zip/Compress/Rar1Decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CPP/7zip/Compress/Rar1Decoder.cpp') diff --git a/CPP/7zip/Compress/Rar1Decoder.cpp b/CPP/7zip/Compress/Rar1Decoder.cpp index 1aaedcc1..0a552506 100644 --- a/CPP/7zip/Compress/Rar1Decoder.cpp +++ b/CPP/7zip/Compress/Rar1Decoder.cpp @@ -57,7 +57,7 @@ UInt32 CDecoder::DecodeNum(const UInt32 *posTab) UInt32 num = m_InBitStream.GetValue(12); for (;;) { - UInt32 cur = (posTab[startPos + 1] - posTab[startPos]) << (12 - startPos); + UInt32 cur = (posTab[(size_t)startPos + 1] - posTab[startPos]) << (12 - startPos); if (num < cur) break; startPos++; @@ -149,7 +149,7 @@ HRESULT CDecoder::ShortLZ() PlaceA[dist]--; UInt32 lastDistance = ChSetA[(unsigned)distancePlace]; PlaceA[lastDistance]++; - ChSetA[(unsigned)distancePlace + 1] = lastDistance; + ChSetA[(size_t)(unsigned)distancePlace + 1] = lastDistance; ChSetA[(unsigned)distancePlace] = dist; } len += 2; -- cgit v1.2.3