This commit is contained in:
@@ -532,8 +532,8 @@ impl MachineState {
|
||||
|
||||
chars_iter.iter.next();
|
||||
|
||||
self.pdl.push(chars_iter.iter.focus);
|
||||
self.pdl.push(focus);
|
||||
self.pdl.push(chars_iter.iter.focus);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1460,7 +1460,8 @@ impl Machine {
|
||||
unify!(self.machine_st, self.machine_st.registers[2], pstr_loc_as_cell!(pstr_h));
|
||||
|
||||
if !self.machine_st.fail {
|
||||
self.machine_st.bind(Ref::heap_cell(pstr_h+1), self.machine_st.registers[3]);
|
||||
let tail = self.machine_st.registers[3];
|
||||
unify!(self.machine_st, tail, heap_loc_as_cell!(pstr_h+1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user