diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-06 16:45:48 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-06 16:45:48 -0700 |
commit | c11ad24fd7d961432cfdbca7497ba229d3b4f38d (patch) | |
tree | 5b6b9bdef66b60dd718fa7104765d38a1a21c8d9 /passes/techmap/extract_fa.cc | |
parent | e38f40af5b7cdd5c8b896ffba17069bd65f01f29 (diff) | |
download | yosys-c11ad24fd7d961432cfdbca7497ba229d3b4f38d.tar.gz yosys-c11ad24fd7d961432cfdbca7497ba229d3b4f38d.tar.bz2 yosys-c11ad24fd7d961432cfdbca7497ba229d3b4f38d.zip |
Use std::stoi instead of atoi(<str>.c_str())
Diffstat (limited to 'passes/techmap/extract_fa.cc')
-rw-r--r-- | passes/techmap/extract_fa.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/techmap/extract_fa.cc b/passes/techmap/extract_fa.cc index b541ceb6b..0b5b6a111 100644 --- a/passes/techmap/extract_fa.cc +++ b/passes/techmap/extract_fa.cc @@ -580,11 +580,11 @@ struct ExtractFaPass : public Pass { continue; } if (args[argidx] == "-d" && argidx+2 < args.size()) { - config.maxdepth = atoi(args[++argidx].c_str()); + config.maxdepth = std::stoi(args[++argidx]); continue; } if (args[argidx] == "-b" && argidx+2 < args.size()) { - config.maxbreadth = atoi(args[++argidx].c_str()); + config.maxbreadth = std::stoi(args[++argidx]); continue; } break; |