correct for second argument when (is)/2 is a tail call

This commit is contained in:
Mark Thom
2020-05-16 20:22:17 -06:00
parent a38fb41e37
commit 05d3b97eae
3 changed files with 92 additions and 60 deletions

View File

@@ -4272,7 +4272,7 @@ impl MachineState {
self.fail = non_quoted_token(once(c));
}
Addr::Con(h) => {
if let HeapCellValue::Atom(atom, _) = &self.heap[h] {
if let HeapCellValue::Atom(atom, _) = &self.heap[h] {
self.fail = non_quoted_token(atom.as_str().chars());
}
}