mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-31 00:13:18 +00:00
substr() -> compare()
This commit is contained in:
parent
71eff6f0de
commit
6d77236f38
31 changed files with 127 additions and 127 deletions
|
@ -61,7 +61,7 @@ struct SmvWorker
|
|||
{
|
||||
string name = stringf("_%s", id.c_str());
|
||||
|
||||
if (name.substr(0, 2) == "_\\")
|
||||
if (name.compare(0, 2, "_\\") == 0)
|
||||
name = "_" + name.substr(2);
|
||||
|
||||
for (auto &c : name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue