fix dif/2 crash (#1378)

This commit is contained in:
Mark Thom
2022-03-29 18:39:45 -06:00
parent 32bdedde6d
commit c490d818fb

View File

@@ -1621,10 +1621,13 @@ impl MachineState {
); );
let c2 = stalled_iter.heap[l]; let c2 = stalled_iter.heap[l];
let c1 = string_iter.chars().next().unwrap(); let c1 = match string_iter.chars().next() {
Some(c) => char_as_cell!(c),
None => string_iter.focus,
};
pdl.push(c2); pdl.push(c2);
pdl.push(char_as_cell!(c1)); pdl.push(c1);
None None
} }