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
|
@ -1476,7 +1476,7 @@ struct Smt2Backend : public Backend {
|
|||
int indent = 0;
|
||||
while (indent < GetSize(line) && (line[indent] == ' ' || line[indent] == '\t'))
|
||||
indent++;
|
||||
if (line.substr(indent, 2) == "%%")
|
||||
if (line.compare(indent, 2, "%%") == 0)
|
||||
break;
|
||||
*f << line << std::endl;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue