use binary_pow for (^)/2
This commit is contained in:
@@ -721,7 +721,7 @@ impl MachineState {
|
|||||||
let caller = MachineError::functor_stub(clause_name!("(is)"), 2);
|
let caller = MachineError::functor_stub(clause_name!("(is)"), 2);
|
||||||
let mut interms: Vec<Number> = Vec::with_capacity(64);
|
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 {
|
match heap_val {
|
||||||
HeapCellValue::NamedStr(2, name, _) => {
|
HeapCellValue::NamedStr(2, name, _) => {
|
||||||
let a2 = interms.pop().unwrap();
|
let a2 = interms.pop().unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user