mirror of
https://github.com/opnsense/src.git
synced 2026-07-16 12:33:07 -04:00
Fix pointer arithmetic to be 64-bit friendly.
This commit is contained in:
parent
e349e6b8a0
commit
11acae799a
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue