retrieve F64 behind Cons tags properly (#1369)

This commit is contained in:
Mark Thom
2022-03-26 21:18:07 -06:00
parent 4878e42e07
commit 012fefa37e
2 changed files with 21 additions and 5 deletions

View File

@@ -87,10 +87,15 @@ impl ConsPtr {
.with_tag(tag)
}
#[inline]
#[inline(always)]
pub fn as_ptr(self) -> *mut u8 {
self.ptr() as *mut _
}
#[inline(always)]
pub fn get_tag(self) -> ConsPtrMaskTag {
self.tag()
}
}
#[derive(BitfieldSpecifier, Copy, Clone, Debug)]