correct print_var_eq bad ending check

This commit is contained in:
Mark Thom
2018-09-03 15:14:02 -06:00
parent 684e3d217f
commit 239552f4c3
2 changed files with 9 additions and 1 deletions

View File

@@ -131,7 +131,9 @@ impl MachineState {
let printer = HCPrinter::from_heap_locs(&self, fmt, output, var_dir);
let mut output = printer.print(addr);
if output.ends_with(var.as_str()) {
let bad_ending = format!("= {}", &var);
if output.ends_with(&bad_ending) {
output.truncate(orig_len);
}