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/Archive/Lzh/LzhCRC.cpp')
-rwxr-xr-x7zip/Archive/Lzh/LzhCRC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/7zip/Archive/Lzh/LzhCRC.cpp b/7zip/Archive/Lzh/LzhCRC.cpp
index f11564a5..ca1235bb 100755
--- a/7zip/Archive/Lzh/LzhCRC.cpp
+++ b/7zip/Archive/Lzh/LzhCRC.cpp
@@ -36,7 +36,7 @@ void CCRC::Update(const void *data, size_t size)
UInt16 v = _value;
const Byte *p = (const Byte *)data;
for (; size > 0; size--, p++)
- v = Table[((Byte)(v)) ^ *p] ^ (v >> 8);
+ v = (UInt16)(Table[((Byte)(v)) ^ *p] ^ (v >> 8));
_value = v;
}