Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Compress/Rar2Decoder.cpp')
-rw-r--r--[-rwxr-xr-x]CPP/7zip/Compress/Rar2Decoder.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/CPP/7zip/Compress/Rar2Decoder.cpp b/CPP/7zip/Compress/Rar2Decoder.cpp
index 4e669bd6..1773939c 100755..100644
--- a/CPP/7zip/Compress/Rar2Decoder.cpp
+++ b/CPP/7zip/Compress/Rar2Decoder.cpp
@@ -85,7 +85,7 @@ CDecoder::CDecoder():
void CDecoder::InitStructures()
{
m_MmFilter.Init();
- for(int i = 0; i < kNumRepDists; i++)
+ for (int i = 0; i < kNumRepDists; i++)
m_RepDists[i] = 0;
m_RepDistPtr = 0;
m_LastLength = 0;
@@ -191,6 +191,7 @@ bool CDecoder::ReadLastTables()
return true;
}
+/*
class CCoderReleaser
{
CDecoder *m_Coder;
@@ -201,6 +202,7 @@ public:
m_Coder->ReleaseStreams();
}
};
+*/
bool CDecoder::DecodeMm(UInt32 pos)
{
@@ -319,7 +321,7 @@ HRESULT CDecoder::CodeReal(ISequentialInStream *inStream, ISequentialOutStream *
m_InBitStream.SetStream(inStream);
m_InBitStream.Init();
- CCoderReleaser coderReleaser(this);
+ // CCoderReleaser coderReleaser(this);
if (!m_IsSolid)
{
InitStructures();
@@ -335,7 +337,7 @@ HRESULT CDecoder::CodeReal(ISequentialInStream *inStream, ISequentialOutStream *
}
UInt64 startPos = m_OutWindowStream.GetProcessedSize();
- while(pos < unPackSize)
+ while (pos < unPackSize)
{
UInt32 blockSize = 1 << 20;
if (blockSize > unPackSize - pos)