fix test aligned (#25419)

This commit is contained in:
Jack May 2022-05-20 14:05:54 -07:00 committed by GitHub
parent a5792885ca
commit 2f445c70b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4469,7 +4469,7 @@ mod tests {
}; };
let mut result: Result<u64, EbpfError<BpfError>> = Ok(0); let mut result: Result<u64, EbpfError<BpfError>> = Ok(0);
syscall.call( syscall.call(
size_of::<u8>() as u64, size_of::<T>() as u64,
0, 0,
0, 0,
0, 0,
@ -4480,7 +4480,7 @@ mod tests {
let address = result.unwrap(); let address = result.unwrap();
assert_ne!(address, 0); assert_ne!(address, 0);
assert_eq!( assert_eq!(
(address as *const u8 as usize).wrapping_rem(align_of::<u8>()), (address as *const u8 as usize).wrapping_rem(align_of::<T>()),
0 0
); );
} }