Fix pointer arithmetic to be 64-bit friendly.

This commit is contained in:
Ruslan Ermilov 2006-11-04 08:45:50 +00:00
parent e349e6b8a0
commit 11acae799a

View File

@ -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));
}