From 8661b733237310f2d7822286ad64f92827032957 Mon Sep 17 00:00:00 2001 From: Alisa Sireneva Date: Wed, 30 Oct 2024 13:19:31 +0300 Subject: [PATCH] Fix alignment on 32-bit architectures --- src/backend/itanium.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/itanium.rs b/src/backend/itanium.rs index baea095..f579336 100644 --- a/src/backend/itanium.rs +++ b/src/backend/itanium.rs @@ -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,