properly copy already-copied attributed variables as shallow members of lists

This commit is contained in:
Mark Thom
2019-02-04 23:04:31 -07:00
parent 3d5489496e
commit 3f5ff2eae1

View File

@@ -89,7 +89,7 @@ pub(crate) trait CopierTarget: IndexMut<usize, Output=HeapCellValue>
let rd = self.store(self.deref(ra));
match rd.clone() {
Addr::HeapCell(hc) if hc >= old_h =>
Addr::AttrVal(h) | Addr::HeapCell(h) if h >= old_h =>
self[threshold] = HeapCellValue::Addr(rd),
ra @ Addr::AttrVar(_) | ra @ Addr::HeapCell(..) | ra @ Addr::StackCell(..) =>
if ra == rd {