Skip to content

Commit

Permalink
Fix alignment on 32-bit architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Oct 30, 2024
1 parent 73e13a1 commit 8661b73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/itanium.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ unsafe impl ThrowByPointer for ActiveBackend {
}
}

#[repr(C, align(16))]
#[repr(C)]
#[cfg_attr(target_pointer_width = "32", repr(align(8)))]
#[cfg_attr(target_pointer_width = "64", repr(align(16)))]
pub struct Header {
class: u64,
cleanup: Option<unsafe extern "C" fn(i32, *mut Header)>,
Expand Down

0 comments on commit 8661b73

Please sign in to comment.