unmark dereferenced cells in term_variables/2 (#1412)

This commit is contained in:
Mark Thom
2022-04-09 12:15:46 -06:00
parent ed803d30cd
commit 0876d46880
2 changed files with 6 additions and 4 deletions

View File

@@ -2056,8 +2056,10 @@ impl MachineState {
while let Some(value) = iter.next() {
if value.get_forwarding_bit() {
let value = unmark_cell_bits!(value);
let value = heap_bound_store(iter.heap, heap_bound_deref(iter.heap, value));
let value = unmark_cell_bits!(heap_bound_store(
iter.heap,
heap_bound_deref(iter.heap, value),
));
if value.is_compound() {
return true;