From: Eric Bollengier Date: Fri, 5 Nov 2010 09:41:27 +0000 (+0100) Subject: Fix compilation problem on win64 X-Git-Tag: Release-5.2.1~974 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4cf69a09c9d422e24d0cd77226b7ace241307dc7;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. */