has_tail must be false for use as a filename from open/{3,4}

This commit is contained in:
Mark Thom
2021-03-03 12:16:47 -07:00
parent 23cb743ce2
commit 5a3ee3a46e

View File

@@ -3111,7 +3111,7 @@ impl MachineState {
self.stream_from_file_spec(atom, indices, &options)? self.stream_from_file_spec(atom, indices, &options)?
} }
Addr::PStrLocation(h, n) => match &self.heap[h] { Addr::PStrLocation(h, n) => match &self.heap[h] {
&HeapCellValue::PartialString(_, true) => { &HeapCellValue::PartialString(_, _has_tail @ false) => {
let mut heap_pstr_iter = self.heap_pstr_iter(Addr::PStrLocation(h, n)); let mut heap_pstr_iter = self.heap_pstr_iter(Addr::PStrLocation(h, n));
let file_spec = clause_name!(heap_pstr_iter.to_string(), self.atom_tbl); let file_spec = clause_name!(heap_pstr_iter.to_string(), self.atom_tbl);