Code

Produce proper ODG files on x86_64, patch by Lubomir Rintel
authorluca_bruno <luca_bruno@users.sourceforge.net>
Fri, 10 Jul 2009 19:42:44 +0000 (19:42 +0000)
committerluca_bruno <luca_bruno@users.sourceforge.net>
Fri, 10 Jul 2009 19:42:44 +0000 (19:42 +0000)
(Closes: #275519)

src/dom/util/ziptool.cpp

index a51d12986978f8ea48c38fd0e3a41887f2ea4bc2..40f456bd6c146da3ca011ef1e65a59edc54b4436 100644 (file)
@@ -158,6 +158,8 @@ void Crc32::reset()
 void Crc32::update(unsigned char b)
 {
     unsigned long c = ~value;
+
+    c &= 0xffffffff;
     c = crc_table[(c ^ b) & 0xff] ^ (c >> 8);
     value = ~c;
 }