]> Repositorios git - scryer-prolog.git/commitdiff
use binary_pow for (^)/2
authorMark Thom <[email protected]>
Tue, 23 Apr 2019 01:49:04 +0000 (19:49 -0600)
committerMark Thom <[email protected]>
Tue, 23 Apr 2019 01:49:04 +0000 (19:49 -0600)
src/prolog/machine/machine_state_impl.rs

index 736e7440d7db98cbd7ff5360189888c6db88c9c9..9195e283d47b35f20a57740ce38668b53e0eddfe 100644 (file)
@@ -721,7 +721,7 @@ impl MachineState {
         let caller = MachineError::functor_stub(clause_name!("(is)"), 2);
         let mut interms: Vec<Number> = Vec::with_capacity(64);
 
-        for heap_val in self.heap.post_order_iter(a) {
+        for heap_val in self.post_order_iter(a) {
             match heap_val {
                 HeapCellValue::NamedStr(2, name, _) => {
                     let a2 = interms.pop().unwrap();