mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-27 22:47:56 +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
|
@ -655,19 +655,19 @@ struct ShregmapPass : public Pass {
|
|||
continue;
|
||||
}
|
||||
if (args[argidx] == "-minlen" && argidx+1 < args.size()) {
|
||||
opts.minlen = atoi(args[++argidx].c_str());
|
||||
opts.minlen = std::stoi(args[++argidx]);
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-maxlen" && argidx+1 < args.size()) {
|
||||
opts.maxlen = atoi(args[++argidx].c_str());
|
||||
opts.maxlen = std::stoi(args[++argidx]);
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-keep_before" && argidx+1 < args.size()) {
|
||||
opts.keep_before = atoi(args[++argidx].c_str());
|
||||
opts.keep_before = std::stoi(args[++argidx]);
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-keep_after" && argidx+1 < args.size()) {
|
||||
opts.keep_after = atoi(args[++argidx].c_str());
|
||||
opts.keep_after = std::stoi(args[++argidx]);
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-tech" && argidx+1 < args.size() && opts.tech == nullptr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue