mem: fix copy() allocation of indirect atoms

addresses #73
This commit is contained in:
Jonathan Paprocki 2023-08-29 17:25:55 -04:00
parent 08f14b8318
commit 15bbe68cc1

View File

@ -278,7 +278,8 @@ impl NockStack {
}
unsafe fn indirect_alloc_in_previous_frame_east(&mut self, words: usize) -> *mut u64 {
*(self.prev_alloc_pointer_pointer()) = *(self.prev_alloc_pointer_pointer()).sub(words + 2);
*(self.prev_alloc_pointer_pointer()) =
(*(self.prev_alloc_pointer_pointer())).sub(words + 2);
*self.prev_alloc_pointer_pointer() as *mut u64
}