summaryrefslogtreecommitdiffstats
path: root/src/libs/7zip/win/CPP/7zip/Compress
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/7zip/win/CPP/7zip/Compress')
-rw-r--r--src/libs/7zip/win/CPP/7zip/Compress/BZip2Decoder.cpp6
-rw-r--r--src/libs/7zip/win/CPP/7zip/Compress/BZip2Decoder.h4
-rw-r--r--src/libs/7zip/win/CPP/7zip/Compress/BZip2Encoder.cpp6
-rw-r--r--src/libs/7zip/win/CPP/7zip/Compress/BZip2Encoder.h2
-rw-r--r--src/libs/7zip/win/CPP/7zip/Compress/CopyCoder.h2
-rw-r--r--src/libs/7zip/win/CPP/7zip/Compress/DeflateConst.h2
-rw-r--r--src/libs/7zip/win/CPP/7zip/Compress/DeflateDecoder.cpp8
-rw-r--r--src/libs/7zip/win/CPP/7zip/Compress/DeflateEncoder.cpp2
8 files changed, 16 insertions, 16 deletions
diff --git a/src/libs/7zip/win/CPP/7zip/Compress/BZip2Decoder.cpp b/src/libs/7zip/win/CPP/7zip/Compress/BZip2Decoder.cpp
index cb1f981a7..7c641d7f7 100644
--- a/src/libs/7zip/win/CPP/7zip/Compress/BZip2Decoder.cpp
+++ b/src/libs/7zip/win/CPP/7zip/Compress/BZip2Decoder.cpp
@@ -291,7 +291,7 @@ static UInt32 NO_INLINE DecodeBlock2(const UInt32 *tt, UInt32 blockSize, UInt32
unsigned b = (unsigned)(tPos & 0xFF);
tPos = tt[tPos >> 8];
- if (numReps == kRleModeRepSize)
+ if (numReps == (unsigned int)kRleModeRepSize) // PQR for MinGW-w64: Signed < Unsigned comparison.
{
for (; b > 0; b--)
{
@@ -395,7 +395,7 @@ static UInt32 NO_INLINE DecodeBlock2Rand(const UInt32 *tt, UInt32 blockSize, UIn
randToGo--;
}
- if (numReps == kRleModeRepSize)
+ if (numReps == (unsigned int)kRleModeRepSize) // PQR for MinGW-w64: Signed < Unsigned comparison.
{
for (; b > 0; b--)
{
@@ -904,7 +904,7 @@ STDMETHODIMP CNsisDecoder::Read(void *data, UInt32 size, UInt32 *processedSize)
tPos = tt[tPos >> 8];
blockSize--;
- if (numReps == kRleModeRepSize)
+ if (numReps == (unsigned int)kRleModeRepSize) // PQR for MinGW-w64: Signed < Unsigned comparison.
{
numReps = 0;
while (b)
diff --git a/src/libs/7zip/win/CPP/7zip/Compress/BZip2Decoder.h b/src/libs/7zip/win/CPP/7zip/Compress/BZip2Decoder.h
index e6dec1eaa..decf41dc3 100644
--- a/src/libs/7zip/win/CPP/7zip/Compress/BZip2Decoder.h
+++ b/src/libs/7zip/win/CPP/7zip/Compress/BZip2Decoder.h
@@ -91,8 +91,8 @@ private:
bool ReleaseInStream;
CDecoderFlusher(CDecoder *decoder, bool releaseInStream):
_decoder(decoder),
- ReleaseInStream(releaseInStream),
- NeedFlush(true) {}
+ NeedFlush(true),
+ ReleaseInStream(releaseInStream) {} // PQR for MinGW-w64: Initialization order.
~CDecoderFlusher()
{
if (NeedFlush)
diff --git a/src/libs/7zip/win/CPP/7zip/Compress/BZip2Encoder.cpp b/src/libs/7zip/win/CPP/7zip/Compress/BZip2Encoder.cpp
index eaa108558..37e719977 100644
--- a/src/libs/7zip/win/CPP/7zip/Compress/BZip2Encoder.cpp
+++ b/src/libs/7zip/win/CPP/7zip/Compress/BZip2Encoder.cpp
@@ -846,7 +846,7 @@ HRESULT CEncoder::SetCoderProperties(const PROPID *propIDs, const PROPVARIANT *p
UInt32 numPasses = prop.ulVal;
if (numPasses == 0)
numPasses = 1;
- if (numPasses > kNumPassesMax)
+ if (numPasses > (unsigned int)kNumPassesMax) // PQR for MinGW-w64: Signed < Unsigned comparison.
numPasses = kNumPassesMax;
NumPasses = numPasses;
m_OptimizeNumTables = (NumPasses > 1);
@@ -857,9 +857,9 @@ HRESULT CEncoder::SetCoderProperties(const PROPID *propIDs, const PROPVARIANT *p
if (prop.vt != VT_UI4)
return E_INVALIDARG;
UInt32 dictionary = prop.ulVal / kBlockSizeStep;
- if (dictionary < kBlockSizeMultMin)
+ if (dictionary < (unsigned int)kBlockSizeMultMin) // PQR for MinGW-w64: Signed < Unsigned comparison.
dictionary = kBlockSizeMultMin;
- else if (dictionary > kBlockSizeMultMax)
+ else if (dictionary > (unsigned int)kBlockSizeMultMax) // PQR for MinGW-w64: Signed < Unsigned comparison.
dictionary = kBlockSizeMultMax;
m_BlockSizeMult = dictionary;
break;
diff --git a/src/libs/7zip/win/CPP/7zip/Compress/BZip2Encoder.h b/src/libs/7zip/win/CPP/7zip/Compress/BZip2Encoder.h
index a863172fe..e864fb398 100644
--- a/src/libs/7zip/win/CPP/7zip/Compress/BZip2Encoder.h
+++ b/src/libs/7zip/win/CPP/7zip/Compress/BZip2Encoder.h
@@ -137,7 +137,7 @@ public:
DWORD ThreadFunc();
#endif
- CThreadInfo(): m_BlockSorterIndex(0), m_Block(0) {}
+ CThreadInfo(): m_Block(0), m_BlockSorterIndex(0) {} // PQR for MinGW-w64: Initialization order.
~CThreadInfo() { Free(); }
bool Alloc();
void Free();
diff --git a/src/libs/7zip/win/CPP/7zip/Compress/CopyCoder.h b/src/libs/7zip/win/CPP/7zip/Compress/CopyCoder.h
index c5445ccf8..daef658d9 100644
--- a/src/libs/7zip/win/CPP/7zip/Compress/CopyCoder.h
+++ b/src/libs/7zip/win/CPP/7zip/Compress/CopyCoder.h
@@ -17,7 +17,7 @@ class CCopyCoder:
Byte *_buffer;
public:
UInt64 TotalSize;
- CCopyCoder(): TotalSize(0), _buffer(0) {};
+ CCopyCoder(): _buffer(0), TotalSize(0) {} // PQR for MinGW-w64: Initialization order.
~CCopyCoder();
MY_UNKNOWN_IMP1(ICompressGetInStreamProcessedSize)
diff --git a/src/libs/7zip/win/CPP/7zip/Compress/DeflateConst.h b/src/libs/7zip/win/CPP/7zip/Compress/DeflateConst.h
index 00e5ab8bf..1e0817fa7 100644
--- a/src/libs/7zip/win/CPP/7zip/Compress/DeflateConst.h
+++ b/src/libs/7zip/win/CPP/7zip/Compress/DeflateConst.h
@@ -114,7 +114,7 @@ struct CLevels
void SetFixedLevels()
{
- int i;
+ unsigned int i; // PQR for MinGW-w64: Signed < Unsigned comparison.
for (i = 0; i < 144; i++)
litLenLevels[i] = 8;
diff --git a/src/libs/7zip/win/CPP/7zip/Compress/DeflateDecoder.cpp b/src/libs/7zip/win/CPP/7zip/Compress/DeflateDecoder.cpp
index 2848cd812..28ae304b0 100644
--- a/src/libs/7zip/win/CPP/7zip/Compress/DeflateDecoder.cpp
+++ b/src/libs/7zip/win/CPP/7zip/Compress/DeflateDecoder.cpp
@@ -12,11 +12,11 @@ static const int kLenIdFinished = -1;
static const int kLenIdNeedInit = -2;
CCoder::CCoder(bool deflate64Mode, bool deflateNSIS):
- _deflate64Mode(deflate64Mode),
_deflateNSIS(deflateNSIS),
+ _deflate64Mode(deflate64Mode),
_keepHistory(false),
_needInitInStream(true),
- ZlibMode(false) {}
+ ZlibMode(false) {} // PQR for MinGW-w64: Initialization order.
UInt32 CCoder::ReadBits(int numBits)
{
@@ -90,14 +90,14 @@ bool CCoder::ReadTables(void)
{
int numLitLenLevels = ReadBits(kNumLenCodesFieldSize) + kNumLitLenCodesMin;
_numDistLevels = ReadBits(kNumDistCodesFieldSize) + kNumDistCodesMin;
- int numLevelCodes = ReadBits(kNumLevelCodesFieldSize) + kNumLevelCodesMin;
+ unsigned int numLevelCodes = ReadBits(kNumLevelCodesFieldSize) + kNumLevelCodesMin;
if (!_deflate64Mode)
if (_numDistLevels > kDistTableSize32)
return false;
Byte levelLevels[kLevelTableSize];
- for (int i = 0; i < kLevelTableSize; i++)
+ for (unsigned int i = 0; i < kLevelTableSize; i++) // PQR for MinGW-w64: Signed < Unsigned comparison.
{
int position = kCodeLengthAlphabetOrder[i];
if(i < numLevelCodes)
diff --git a/src/libs/7zip/win/CPP/7zip/Compress/DeflateEncoder.cpp b/src/libs/7zip/win/CPP/7zip/Compress/DeflateEncoder.cpp
index 35a81cae4..4ce104f91 100644
--- a/src/libs/7zip/win/CPP/7zip/Compress/DeflateEncoder.cpp
+++ b/src/libs/7zip/win/CPP/7zip/Compress/DeflateEncoder.cpp
@@ -49,7 +49,7 @@ class CFastPosInit
public:
CFastPosInit()
{
- int i;
+ unsigned int i; // PQR for MinGW-w64: Signed < Unsigned comparison.
for(i = 0; i < kNumLenSlots; i++)
{
int c = kLenStart32[i];