From 9274ba8a1f4e7c5a2e66d1b847a14c8192179f93 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Sun, 5 Nov 2006 14:36:59 +0000 Subject: [PATCH] Revert previous commit, and instead make the expression in rev. 1.2 match the style of this file. OK'ed by: rrs --- sys/netinet/sctp_crc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctp_crc32.c b/sys/netinet/sctp_crc32.c index eba91cdba7c..c0842a733c3 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 = (uintptr_t) (buffer & ~0x3); + offset = ((uintptr_t) buffer) & 0x3; return (sctp_crc32c_sb8_64_bit(crc32, buffer, length, offset)); }