remove unsafe impl From<UntypedArenaPtr> for CodeIndex

This commit is contained in:
Bennet Bleßmann
2024-07-07 14:18:50 +02:00
parent 39bd520542
commit 74720d4d2e
2 changed files with 2 additions and 9 deletions

View File

@@ -69,8 +69,8 @@ impl TryFrom<HeapCellValue> for Literal {
(ArenaHeaderTag::Rational, n) => {
Ok(Literal::Rational(n))
}
(ArenaHeaderTag::IndexPtr, _ip) => {
Ok(Literal::CodeIndex(CodeIndex::from(cons_ptr)))
(ArenaHeaderTag::IndexPtr, ip) => {
Ok(Literal::CodeIndex(CodeIndex::from(ip)))
}
_ => {
Err(())