]> Repositorios git - scryer-prolog.git/commitdiff
remove unnecessary store/deref in keysort error checking
authorMark Thom <[email protected]>
Thu, 3 May 2018 03:54:09 +0000 (21:54 -0600)
committerMark Thom <[email protected]>
Thu, 3 May 2018 03:54:09 +0000 (21:54 -0600)
src/prolog/machine/machine_errors.rs

index 118612914211eb6214082d3dd31b929e9abb15e6..01a699fdd00b41e3cdf638fd93739a702a85d4ec 100644 (file)
@@ -71,7 +71,7 @@ impl MachineState {
                         };
                     }
 
-                    addr = self.store(self.deref(Addr::HeapCell(l + 1)));
+                    addr = Addr::HeapCell(l + 1);
                 }
 
                 Ok(())