diff options
author | 2016-04-09 21:45:54 +1000 | |
---|---|---|
committer | 2016-04-09 21:52:08 +1000 | |
commit | e925c494fe30adafb615c075f5eb692dd2b2effa (patch) | |
tree | eed0b7ccadb049ed2dc8a72282c0235c4e94b6ae /3rdparty/lzma/C/Ppmd7Enc.c | |
parent | b13e02f9751424dfc9ce6070676e2e318087a991 (diff) |
Update LZMA SDK to 15.14
Diffstat (limited to '3rdparty/lzma/C/Ppmd7Enc.c')
-rw-r--r-- | 3rdparty/lzma/C/Ppmd7Enc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/3rdparty/lzma/C/Ppmd7Enc.c b/3rdparty/lzma/C/Ppmd7Enc.c index 8247757d09d..e6dd3d2fc29 100644 --- a/3rdparty/lzma/C/Ppmd7Enc.c +++ b/3rdparty/lzma/C/Ppmd7Enc.c @@ -1,7 +1,9 @@ /* Ppmd7Enc.c -- PPMdH Encoder -2010-03-12 : Igor Pavlov : Public domain +2015-09-28 : Igor Pavlov : Public domain This code is based on PPMd var.H (2001): Dmitry Shkarin : Public domain */ +#include "Precomp.h" + #include "Ppmd7.h" #define kTopValue (1 << 24) @@ -24,7 +26,7 @@ static void RangeEnc_ShiftLow(CPpmd7z_RangeEnc *p) p->Stream->Write(p->Stream, (Byte)(temp + (Byte)(p->Low >> 32))); temp = 0xFF; } - while(--p->CacheSize != 0); + while (--p->CacheSize != 0); p->Cache = (Byte)((UInt32)p->Low >> 24); } p->CacheSize++; |