diff --git a/crates/anyrender/src/filters.rs b/crates/anyrender/src/filters.rs index b8eed24..2b7d7de 100644 --- a/crates/anyrender/src/filters.rs +++ b/crates/anyrender/src/filters.rs @@ -430,7 +430,10 @@ pub enum FilterEffect { // This is just for documentation purposes. Feel free to update the value as necessary #[cfg(target_pointer_width = "64")] const _: [u8; 128] = [0; std::mem::size_of::()]; -#[cfg(target_pointer_width = "32")] +// On 32-bit x86, 64-bit fields only have 4-byte alignment. +#[cfg(all(target_pointer_width = "32", target_arch = "x86"))] +const _: [u8; 84] = [0; std::mem::size_of::()]; +#[cfg(all(target_pointer_width = "32", not(target_arch = "x86")))] const _: [u8; 88] = [0; std::mem::size_of::()]; impl FilterEffect {