From 5f73044b6b30a363c9ec0f909f9225b5faf88acf Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Mon, 7 Sep 2026 16:03:10 +0000 Subject: [PATCH] Back the repark test's element slot with word storage --- node-graph/nodes/graphic/src/record.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/node-graph/nodes/graphic/src/record.rs b/node-graph/nodes/graphic/src/record.rs index 41d78c46d3..81810a86b1 100644 --- a/node-graph/nodes/graphic/src/record.rs +++ b/node-graph/nodes/graphic/src/record.rs @@ -750,10 +750,11 @@ mod tests { let copy = unsafe { (out.element.clone_out)(out.rec(&value).ptr()) }; let replay_arena = Arena::new(1 << 16).unwrap(); - let mut slot = [0u8; 8]; - unsafe { (out.element.repark)(&*copy, slot.as_mut_ptr(), &replay_arena) }.expect("the arena holds the replay"); + // Word storage: a parked element slot holds an 8-aligned reference. + let mut slot = [0u64; 1]; + unsafe { (out.element.repark)(&*copy, slot.as_mut_ptr().cast(), &replay_arena) }.expect("the arena holds the replay"); // SAFETY: the re-park wrote a parked `Graphic` element into `slot`. - let Graphic::Group(group) = (unsafe { record::borrow_element::(record::Rec::new(slot.as_ptr())) }) else { + let Graphic::Group(group) = (unsafe { record::borrow_element::(record::Rec::new(slot.as_ptr().cast())) }) else { panic!("the replay restores the group element"); }; let item = &group.content;