Skip to content

Commit a7cc77a

Browse files
committed
Compare against ZST_ALLOC_ID in points_to_zst.
1 parent bbc8424 commit a7cc77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Pointer {
4242
Pointer { offset: (self.offset as isize + i) as usize, ..self }
4343
}
4444
pub fn points_to_zst(&self) -> bool {
45-
self.alloc_id.0 == 0
45+
self.alloc_id == ZST_ALLOC_ID
4646
}
4747
fn zst_ptr() -> Self {
4848
Pointer {

0 commit comments

Comments
 (0)