mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-07 06:46:06 +00:00
Store IdString lengths and use them
This commit is contained in:
parent
ae219cb8f9
commit
d70924ace2
3 changed files with 38 additions and 28 deletions
|
|
@ -587,7 +587,7 @@ void format_emit_idstring(std::string &result, std::string_view spec, int *dynam
|
|||
{
|
||||
if (spec == "%s") {
|
||||
// Format checking will have guaranteed num_dynamic_ints == 0.
|
||||
result += arg.c_str();
|
||||
result += arg.str_view();
|
||||
return;
|
||||
}
|
||||
format_emit_stringf(result, spec, dynamic_ints, num_dynamic_ints, arg.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue