mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 03:15:50 +00:00
Use std::stoi instead of atoi(<str>.c_str())
This commit is contained in:
parent
e38f40af5b
commit
c11ad24fd7
36 changed files with 109 additions and 109 deletions
|
@ -103,7 +103,7 @@ void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name, bo
|
|||
|
||||
if (len > 0) {
|
||||
string num_str = wire_name.substr(i+1, len);
|
||||
int num = atoi(num_str.c_str()) & 0x0fffffff;
|
||||
int num = std::stoi(num_str) & 0x0fffffff;
|
||||
blif_maxnum = std::max(blif_maxnum, num);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue