3
0
Fork 0
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:
Eddie Hung 2019-08-06 16:45:48 -07:00
parent e38f40af5b
commit c11ad24fd7
36 changed files with 109 additions and 109 deletions

View file

@ -830,7 +830,7 @@ struct QwpPass : public Pass {
continue;
}
if (args[argidx] == "-grid" && argidx+1 < args.size()) {
config.grid = 1.0 / atoi(args[++argidx].c_str());
config.grid = 1.0 / std::stoi(args[++argidx]);
continue;
}
if (args[argidx] == "-dump" && argidx+1 < args.size()) {