Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make things compile on aarch64 again #1772

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fr32/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ impl<R: Read> Fr32Reader<R> {
// Safety: This is safe because the struct/data is aligned on
// a 16 byte boundary and can therefore be casted from u128
// to u8 without alignment safety issues.
#[allow(clippy::cast_slice_different_sizes)]
unsafe {
&mut (*(&self.in_buffer.0 as *const [u8] as *mut [u128]))
&mut (*(&mut self.in_buffer.0 as *const [u8] as *mut [u128]))
}
#[cfg(not(target_arch = "aarch64"))]
self.in_buffer.0.as_slice_of::<u128>().unwrap()
Expand Down