From f508ec842da225f4946c40953bf24b424f52512d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 16 Feb 2026 19:29:28 +0100 Subject: handle unaligned vecs/slices --- common/object/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/object/src/lib.rs') diff --git a/common/object/src/lib.rs b/common/object/src/lib.rs index 9af4f85..771dd94 100644 --- a/common/object/src/lib.rs +++ b/common/object/src/lib.rs @@ -237,7 +237,7 @@ impl<'a> Object<'a> { val.store_unaligned(&mut temp); let pad = pad_vec(&mut temp); buf[new_offs + i] = off | pad; - buf.extend(bytemuck::cast_slice(&temp)); + buf.extend(&*slice_u8_to_u32(&temp)); } } let values_insert_size = buf.len() - values_new; -- cgit v1.3