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
|
@ -269,11 +269,11 @@ struct SccPass : public Pass {
|
|||
size_t argidx;
|
||||
for (argidx = 1; argidx < args.size(); argidx++) {
|
||||
if (args[argidx] == "-max_depth" && argidx+1 < args.size()) {
|
||||
maxDepth = atoi(args[++argidx].c_str());
|
||||
maxDepth = std::stoi(args[++argidx]);
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-expect" && argidx+1 < args.size()) {
|
||||
expect = atoi(args[++argidx].c_str());
|
||||
expect = std::stoi(args[++argidx]);
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-nofeedback") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue