aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/flowmap.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/flowmap.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/flowmap.cc')
-rw-r--r--passes/techmap/flowmap.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/passes/techmap/flowmap.cc b/passes/techmap/flowmap.cc
index 96d0df5f8..3e66fcacc 100644
--- a/passes/techmap/flowmap.cc
+++ b/passes/techmap/flowmap.cc
@@ -1525,12 +1525,12 @@ struct FlowmapPass : public Pass {
{
if (args[argidx] == "-maxlut" && argidx + 1 < args.size())
{
- order = atoi(args[++argidx].c_str());
+ order = std::stoi(args[++argidx]);
continue;
}
if (args[argidx] == "-minlut" && argidx + 1 < args.size())
{
- minlut = atoi(args[++argidx].c_str());
+ minlut = std::stoi(args[++argidx]);
continue;
}
if (args[argidx] == "-cells" && argidx + 1 < args.size())
@@ -1545,23 +1545,23 @@ struct FlowmapPass : public Pass {
}
if (args[argidx] == "-r-alpha" && argidx + 1 < args.size())
{
- r_alpha = atoi(args[++argidx].c_str());
+ r_alpha = std::stoi(args[++argidx]);
continue;
}
if (args[argidx] == "-r-beta" && argidx + 1 < args.size())
{
- r_beta = atoi(args[++argidx].c_str());
+ r_beta = std::stoi(args[++argidx]);
continue;
}
if (args[argidx] == "-r-gamma" && argidx + 1 < args.size())
{
- r_gamma = atoi(args[++argidx].c_str());
+ r_gamma = std::stoi(args[++argidx]);
continue;
}
if (args[argidx] == "-optarea" && argidx + 1 < args.size())
{
relax = true;
- optarea = atoi(args[++argidx].c_str());
+ optarea = std::stoi(args[++argidx]);
continue;
}
if (args[argidx] == "-debug")