Avoid emitting empty string at end of $display translation
This happened if the last part of a format string was a % code.
This commit is contained in:
parent
6fe7583784
commit
8fc35fa32a
|
|
@ -169,8 +169,10 @@ int draw_stask_display(vhdl_procedural *proc, stmt_container *container,
|
||||||
else
|
else
|
||||||
ss << *p;
|
ss << *p;
|
||||||
}
|
}
|
||||||
|
|
||||||
display_write(container, new vhdl_const_string(ss.str().c_str()));
|
// Call Write on any non-empty string data left in the buffer
|
||||||
|
if (!ss.str().empty())
|
||||||
|
display_write(container, new vhdl_const_string(ss.str().c_str()));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
vhdl_expr *base = translate_expr(net);
|
vhdl_expr *base = translate_expr(net);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue