aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/shregmap.cc
diff options
context:
space:
mode:
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) {