]> Repositorios git - scryer-prolog.git/commitdiff
correct misspelled AttrVar in copier.rs
authorMark Thom <[email protected]>
Wed, 6 Feb 2019 02:43:16 +0000 (19:43 -0700)
committerMark Thom <[email protected]>
Wed, 6 Feb 2019 02:43:16 +0000 (19:43 -0700)
src/prolog/copier.rs

index 5c918d5a45fd1ea8da8114fbb5e74f974d7cda7b..4e98044eeca26b73a3e17be3399f34952d78c382 100644 (file)
@@ -89,7 +89,7 @@ pub(crate) trait CopierTarget: IndexMut<usize, Output=HeapCellValue>
                             let rd = self.store(self.deref(ra));
 
                             match rd.clone() {
-                                Addr::AttrVal(h) | Addr::HeapCell(h) if h >= old_h =>
+                                Addr::AttrVar(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 {