From c5d52722022143241688ac622804e41ea6811cb5 Mon Sep 17 00:00:00 2001 From: ru Date: Sat, 4 Nov 2006 08:45:50 +0000 Subject: Fix pointer arithmetic to be 64-bit friendly. --- sys/netinet/sctp_crc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netinet') diff --git a/sys/netinet/sctp_crc32.c b/sys/netinet/sctp_crc32.c index e84d7fd..f6fd98c 100644 --- a/sys/netinet/sctp_crc32.c +++ b/sys/netinet/sctp_crc32.c @@ -589,7 +589,7 @@ update_crc32(uint32_t crc32, if (length == 0) { return (crc32); } - offset = ((uint32_t) buffer - ((uint32_t) buffer & 0xfffffffc)); + offset = (uintptr_t) buffer & 3; return (sctp_crc32c_sb8_64_bit(crc32, buffer, length, offset)); } -- cgit v1.1