mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-29 20:05:52 +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
|
@ -106,12 +106,12 @@ struct ChformalPass : public Pass {
|
|||
}
|
||||
if (mode == 0 && args[argidx] == "-delay" && argidx+1 < args.size()) {
|
||||
mode = 'd';
|
||||
mode_arg = atoi(args[++argidx].c_str());
|
||||
mode_arg = std::stoi(args[++argidx]);
|
||||
continue;
|
||||
}
|
||||
if (mode == 0 && args[argidx] == "-skip" && argidx+1 < args.size()) {
|
||||
mode = 's';
|
||||
mode_arg = atoi(args[++argidx].c_str());
|
||||
mode_arg = std::stoi(args[++argidx]);
|
||||
continue;
|
||||
}
|
||||
if ((mode == 0 || mode == 'c') && args[argidx] == "-assert2assume") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue