dereference head of list in is_continuable (#1417)

This commit is contained in:
Mark Thom
2022-04-11 17:01:47 -06:00
parent 468088fd6b
commit 525050c407

View File

@@ -226,7 +226,13 @@ impl<'a> HeapPStrIter<'a> {
return name == atom!(".") && arity == 2;
}
(HeapCellValueTag::Lis, h) => {
return read_heap_cell!(self.heap[h],
let value = self.heap[h];
let value = heap_bound_store(
self.heap,
heap_bound_deref(self.heap, value),
);
return read_heap_cell!(value,
(HeapCellValueTag::Atom, (name, arity)) => {
arity == 0 && name.as_char().is_some()
}