mirror of
https://github.com/urbit/ares.git
synced 2024-11-26 20:58:02 +03:00
Merge branch 'status' into y/import-fix
This commit is contained in:
commit
6e0e5d103b
@ -351,6 +351,7 @@ impl NockStack {
|
||||
|
||||
unsafe fn copy(&mut self, noun: &mut Noun) {
|
||||
self.pre_copy();
|
||||
assert!(self.stack_is_empty());
|
||||
let noun_ptr = noun as *mut Noun;
|
||||
// Add two slots to the lightweight stack
|
||||
// Set the first new slot to the noun to be copied
|
||||
@ -447,6 +448,7 @@ impl NockStack {
|
||||
&& (*(self.prev_stack_pointer_pointer())).is_null()
|
||||
&& (*(self.prev_frame_pointer_pointer())).is_null()
|
||||
);
|
||||
assert!(self.stack_is_empty());
|
||||
let noun_ptr = noun as *mut Noun;
|
||||
*(self.push::<Noun>()) = *noun;
|
||||
*(self.push::<*mut Noun>()) = noun_ptr;
|
||||
|
Loading…
Reference in New Issue
Block a user