build CStr's to vars in write_literal_to_var (#1284)

This commit is contained in:
Mark Thom
2022-02-15 22:22:36 -07:00
parent 68ac92a616
commit 5b829636cb

View File

@@ -1973,6 +1973,10 @@ impl MachineState {
| HeapCellValueTag::Str => {
self.match_partial_string(store_v, cstr_atom, false);
}
HeapCellValueTag::AttrVar | HeapCellValueTag::Var => {
let r = store_v.as_var().unwrap();
self.bind(r, lit);
}
_ => {
self.fail = true;
}