mirror of
https://github.com/urbit/ares.git
synced 2024-11-22 15:08:54 +03:00
[ares][stack] fix in_frame test polarity (thanks to @philipcmonk)
This commit is contained in:
parent
b03f398a69
commit
e79781c892
@ -113,10 +113,10 @@ impl NockStack {
|
||||
let ptr_u64 = ptr as *const u64;
|
||||
match &self.polarity {
|
||||
Polarity::East => {
|
||||
ptr_u64 >= self.frame_pointer && ptr_u64 < self.stack_pointer
|
||||
ptr_u64 >= self.stack_pointer && ptr_u64 < self.frame_pointer
|
||||
},
|
||||
Polarity::West => {
|
||||
ptr_u64 >= self.stack_pointer && ptr_u64 < self.frame_pointer
|
||||
ptr_u64 >= self.frame_pointer && ptr_u64 < self.stack_pointer
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user