aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/Common/MethodProps.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/7zip/Common/MethodProps.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/CPP/7zip/Common/MethodProps.h b/CPP/7zip/Common/MethodProps.h
index 3c332d6..a52f4bc 100644
--- a/CPP/7zip/Common/MethodProps.h
+++ b/CPP/7zip/Common/MethodProps.h
@@ -125,7 +125,7 @@ public:
125 125
126 UInt32 Get_Lzma_Algo() const 126 UInt32 Get_Lzma_Algo() const
127 { 127 {
128 int i = FindProp(NCoderPropID::kAlgorithm); 128 const int i = FindProp(NCoderPropID::kAlgorithm);
129 if (i >= 0) 129 if (i >= 0)
130 { 130 {
131 const NWindows::NCOM::CPropVariant &val = Props[(unsigned)i].Value; 131 const NWindows::NCOM::CPropVariant &val = Props[(unsigned)i].Value;
@@ -141,11 +141,11 @@ public:
141 if (Get_DicSize(v)) 141 if (Get_DicSize(v))
142 return v; 142 return v;
143 const unsigned level = GetLevel(); 143 const unsigned level = GetLevel();
144 const UInt32 dictSize = 144 const UInt32 dictSize = level <= 4 ?
145 ( level <= 3 ? ((UInt32)1 << (level * 2 + 16)) : 145 (UInt32)1 << (level * 2 + 16) :
146 ( level <= 6 ? ((UInt32)1 << (level + 19)) : 146 level <= sizeof(size_t) / 2 + 4 ?
147 ( level <= 7 ? ((UInt32)1 << 25) : ((UInt32)1 << 26) 147 (UInt32)1 << (level + 20) :
148 ))); 148 (UInt32)1 << (sizeof(size_t) / 2 + 24);
149 return dictSize; 149 return dictSize;
150 } 150 }
151 151