Skip to content

Commit 72e84a4

Browse files
committed
repr C
whoops
1 parent fc4e616 commit 72e84a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rc/inner.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ fn calc_layout<C, V, S>(slice_len: usize) -> Layout {
280280
extend_layout!(value, Layout::new::<V>());
281281
extend_layout!(slice, Layout::array::<S>(slice_len).ok()?);
282282

283-
Some(layout)
283+
Some(layout.pad_to_align())
284284
}
285285

286286
inner::<C, V, S>(slice_len).expect("rc layout calculation failed")

0 commit comments

Comments
 (0)