From 23b5d962f68aef3b8a860b971f0832e44a7a5602 Mon Sep 17 00:00:00 2001
From: HampusM <hampus@hampusmat.com>
Date: Fri, 28 Mar 2025 14:31:27 +0100
Subject: fix: pad layouts to alignment

---
 src/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib.rs b/src/lib.rs
index fc7179d..31e8810 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -394,7 +394,7 @@ impl MultiVec
             field_arr_byte_offsets.push(array_byte_offset);
         }
 
-        (layout, field_arr_byte_offsets)
+        (layout.pad_to_align(), field_arr_byte_offsets)
     }
 
     fn write_item(&mut self, index: usize, fields: impl IntoIterator<Item = OwnedAnyPtr>)
-- 
cgit v1.2.3-18-g5258