mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-15 07:15:28 +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
|
@ -740,7 +740,7 @@ struct ShowPass : public Pass {
|
|||
continue;
|
||||
}
|
||||
if (arg == "-colors" && argidx+1 < args.size()) {
|
||||
colorSeed = atoi(args[++argidx].c_str());
|
||||
colorSeed = std::stoi(args[++argidx]);
|
||||
for (int i = 0; i < 100; i++)
|
||||
colorSeed = ShowWorker::xorshift32(colorSeed);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue