From: Eric Bollengier Date: Fri, 5 Nov 2010 09:41:27 +0000 (+0100) Subject: Fix compilation problem on win64 X-Git-Tag: Release-7.0.0~1439 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eb158fcfc316c86970cc22a88650b5ed6605a9bf;p=bacula%2Fbacula Fix compilation problem on win64 --- diff --git a/bacula/src/lib/crc32.c b/bacula/src/lib/crc32.c index 7c1c890339..a7cb2afca1 100644 --- a/bacula/src/lib/crc32.c +++ b/bacula/src/lib/crc32.c @@ -378,10 +378,10 @@ uint32_t bcrc32(unsigned char*buf, int len) uint32_t crc = tole(~0); /* Align it */ - if ((long)buf & 3 && len) { + if ((intptr_t)buf & 3 && len) { do { DO_CRC(*buf++); - } while ((--len) && ((long)buf)&3); + } while ((--len) && ((intptr_t)buf)&3); } rem_len = len & 3; /* load data 32 bits wide, xor data 32 bits wide. */