1
Fork 0

Compare against ZST_ALLOC_ID in points_to_zst.

This commit is contained in:
Scott Olson 2016-07-01 16:40:52 -06:00
parent bbc842412e
commit a7cc77a010

View file

@ -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 {