From 535465fcd4b6a71537ebdb8f49483b7db2e6cb18 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Mon, 22 Apr 2019 19:49:04 -0600 Subject: [PATCH] use binary_pow for (^)/2 --- src/prolog/machine/machine_state_impl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prolog/machine/machine_state_impl.rs b/src/prolog/machine/machine_state_impl.rs index 736e7440..9195e283 100644 --- a/src/prolog/machine/machine_state_impl.rs +++ b/src/prolog/machine/machine_state_impl.rs @@ -721,7 +721,7 @@ impl MachineState { let caller = MachineError::functor_stub(clause_name!("(is)"), 2); let mut interms: Vec = 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(); -- 2.54.0