From 4ea9fadeec60ffe4ef29475db118f3c1d5d4115a Mon Sep 17 00:00:00 2001 From: squall-leonhart Date: Mon, 1 Apr 2013 05:45:42 +0000 Subject: [PATCH] revert the > to >> change, fixes regression in loading ppmd 7z files. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1190 a31d4220-a93d-0410-bf67-fe4944624d44 --- fex/7z_C/Ppmd7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fex/7z_C/Ppmd7.c b/fex/7z_C/Ppmd7.c index fecaf66e..4b160cf0 100644 --- a/fex/7z_C/Ppmd7.c +++ b/fex/7z_C/Ppmd7.c @@ -542,7 +542,7 @@ static void UpdateModel(CPpmd7 *p) s->Freq <<= 1; else s->Freq = MAX_FREQ - 4; - c->SummFreq = (UInt16)(s->Freq + p->InitEsc + (ns >> 3)); + c->SummFreq = (UInt16)(s->Freq + p->InitEsc + (ns > 3)); } cf = 2 * (UInt32)p->FoundState->Freq * (c->SummFreq + 6); sf = (UInt32)s0 + c->SummFreq;