From: luca_bruno Date: Fri, 10 Jul 2009 19:42:44 +0000 (+0000) Subject: Produce proper ODG files on x86_64, patch by Lubomir Rintel X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=28bcab7cec8fa3ce0eaec4d74c5bd74de2ad4567;p=inkscape.git Produce proper ODG files on x86_64, patch by Lubomir Rintel (Closes: #275519) --- 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; }