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 '7zip/Compress/LZMA/LZMADecoder.cpp')
-rwxr-xr-x7zip/Compress/LZMA/LZMADecoder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/7zip/Compress/LZMA/LZMADecoder.cpp b/7zip/Compress/LZMA/LZMADecoder.cpp
index 9640d7bc..75de2245 100755
--- a/7zip/Compress/LZMA/LZMADecoder.cpp
+++ b/7zip/Compress/LZMA/LZMADecoder.cpp
@@ -220,7 +220,7 @@ STDMETHODIMP CDecoder::CodeReal(ISequentialInStream *inStream,
SetOutStreamSize(outSize);
CDecoderFlusher flusher(this);
- while (true)
+ for (;;)
{
UInt32 curSize = 1 << 18;
RINOK(CodeSpec(curSize));
@@ -309,7 +309,8 @@ STDMETHODIMP CDecoder::ReleaseInStream()
STDMETHODIMP CDecoder::SetOutStreamSize(const UInt64 *outSize)
{
- if (_outSizeDefined = (outSize != NULL))
+ _outSizeDefined = (outSize != NULL);
+ if (_outSizeDefined)
_outSize = *outSize;
_remainLen = kLenIdNeedInit;
_outWindowStream.Init();