aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/shregmap.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-06 16:45:48 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-06 16:45:48 -0700
commitc11ad24fd7d961432cfdbca7497ba229d3b4f38d (patch)
tree5b6b9bdef66b60dd718fa7104765d38a1a21c8d9 /passes/techmap/shregmap.cc
parente38f40af5b7cdd5c8b896ffba17069bd65f01f29 (diff)
downloadyosys-c11ad24fd7d961432cfdbca7497ba229d3b4f38d.tar.gz
yosys-c11ad24fd7d961432cfdbca7497ba229d3b4f38d.tar.bz2
yosys-c11ad24fd7d961432cfdbca7497ba229d3b4f38d.zip
Use std::stoi instead of atoi(<str>.c_str())
Diffstat (limited to 'passes/techmap/shregmap.cc')
-rw-r--r--passes/techmap/shregmap.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/passes/techmap/shregmap.cc b/passes/techmap/shregmap.cc
index 004ab1eb9..06eb7b793 100644
--- a/passes/techmap/shregmap.cc
+++ b/passes/techmap/shregmap.cc
@@ -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) {