summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ebf6de0)
raw | patch | inline | side by side (parent: ebf6de0)
author | luca_bruno <luca_bruno@users.sourceforge.net> | |
Fri, 10 Jul 2009 19:42:44 +0000 (19:42 +0000) | ||
committer | luca_bruno <luca_bruno@users.sourceforge.net> | |
Fri, 10 Jul 2009 19:42:44 +0000 (19:42 +0000) |
(Closes: #275519)
src/dom/util/ziptool.cpp | patch | blob | history |
index a51d12986978f8ea48c38fd0e3a41887f2ea4bc2..40f456bd6c146da3ca011ef1e65a59edc54b4436 100644 (file)
--- a/src/dom/util/ziptool.cpp
+++ b/src/dom/util/ziptool.cpp
void Crc32::update(unsigned char b)
{
unsigned long c = ~value;
+
+ c &= 0xffffffff;
c = crc_table[(c ^ b) & 0xff] ^ (c >> 8);
value = ~c;
}