correctly handle anonymous variables when reading

This commit is contained in:
Mark Thom
2018-10-15 22:13:58 -06:00
parent 720426648e
commit 3140c65f67

View File

@@ -131,8 +131,6 @@ pub(crate) fn write_term_to_heap(term: &Term, machine_st: &mut MachineState) ->
continue;
},
&TermRef::Var(_, _, ref var) => {
let v = var.as_str();
if let Some((arity, site_h)) = queue.pop_front() {
if let Some(addr) = var_dict.get(var).cloned() {
machine_st.heap[site_h] = HeapCellValue::Addr(addr);