mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-02-01 00:24:14 -06:00
16.01
This commit is contained in:
committed by
Kornel Lesiński
parent
66ac98bb02
commit
bec3b479dc
@@ -449,7 +449,7 @@ void CThreadInfo::EncodeBlock(const Byte *block, UInt32 blockSize)
|
||||
}
|
||||
while (++i < kGroupSize && mtfPos < mtfArraySize);
|
||||
|
||||
UInt32 bestPrice = 0xFFFFFFFF;
|
||||
UInt32 bestPrice2 = 0xFFFFFFFF;
|
||||
unsigned t = 0;
|
||||
do
|
||||
{
|
||||
@@ -459,10 +459,10 @@ void CThreadInfo::EncodeBlock(const Byte *block, UInt32 blockSize)
|
||||
do
|
||||
price += lens[symbols[j]];
|
||||
while (++j < i);
|
||||
if (price < bestPrice)
|
||||
if (price < bestPrice2)
|
||||
{
|
||||
m_Selectors[g] = (Byte)t;
|
||||
bestPrice = price;
|
||||
bestPrice2 = price;
|
||||
}
|
||||
}
|
||||
while (++t < numTables);
|
||||
|
||||
Reference in New Issue
Block a user