Compare against ZST_ALLOC_ID in points_to_zst.
This commit is contained in:
parent
bbc842412e
commit
a7cc77a010
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ impl Pointer {
|
|||
Pointer { offset: (self.offset as isize + i) as usize, ..self }
|
||||
}
|
||||
pub fn points_to_zst(&self) -> bool {
|
||||
self.alloc_id.0 == 0
|
||||
self.alloc_id == ZST_ALLOC_ID
|
||||
}
|
||||
fn zst_ptr() -> Self {
|
||||
Pointer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue