From 28bcab7cec8fa3ce0eaec4d74c5bd74de2ad4567 Mon Sep 17 00:00:00 2001 From: luca_bruno Date: Fri, 10 Jul 2009 19:42:44 +0000 Subject: [PATCH] Produce proper ODG files on x86_64, patch by Lubomir Rintel (Closes: #275519) --- src/dom/util/ziptool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dom/util/ziptool.cpp b/src/dom/util/ziptool.cpp index a51d12986..40f456bd6 100644 --- a/src/dom/util/ziptool.cpp +++ b/src/dom/util/ziptool.cpp @@ -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; } -- 2.30.2