Skip to content
Merged
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion crates/vsimd/src/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub unsafe fn boxed_str(b: Box<[u8]>) -> Box<str> {
#[inline(always)]
#[cfg_attr(debug_assertions, track_caller)]
pub unsafe fn transmute_copy<A: Copy, B: Copy>(a: &A) -> B {
debug_assert!(core::mem::size_of::<A>() == core::mem::size_of::<B>());
debug_assert_eq!(core::mem::size_of::<A>(), core::mem::size_of::<B>());
*(core::ptr::from_ref::<A>(a) as *const B)
Comment thread
Nugine marked this conversation as resolved.
}

Expand Down
Loading