From 4cf69a09c9d422e24d0cd77226b7ace241307dc7 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 5 Nov 2010 10:41:27 +0100 Subject: [PATCH] Fix compilation problem on win64 --- bacula/src/lib/crc32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. */ -- 2.39.5