remove Div for ast.rs

This commit is contained in:
Mark Thom
2017-11-08 22:57:40 -07:00
parent 41d99938e7
commit d6086390e0
3 changed files with 12 additions and 6 deletions

View File

@@ -1511,9 +1511,10 @@ impl MachineState {
match instr {
&ControlInstruction::Allocate(num_cells) => {
let num_frames = self.num_frames();
self.and_stack.push(num_frames + 1, self.e, self.cp, num_cells);
self.and_stack.push(num_frames + 1, self.e, self.cp, num_cells);
self.e = self.and_stack.len() - 1;
self.p += 1;
},
&ControlInstruction::Call(ref name, arity, _) =>
@@ -1538,7 +1539,7 @@ impl MachineState {
self.cp = self.and_stack[e].cp;
self.e = self.and_stack[e].e;
self.p += 1;
},
&ControlInstruction::Execute(ref name, arity) =>