aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds/add.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/cmds/add.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/cmds/add.cc')
-rw-r--r--passes/cmds/add.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/cmds/add.cc b/passes/cmds/add.cc
index af6f7043d..971de1d00 100644
--- a/passes/cmds/add.cc
+++ b/passes/cmds/add.cc
@@ -130,7 +130,7 @@ struct AddPass : public Pass {
if (arg == "-global_input")
arg_flag_global = true;
arg_name = args[++argidx];
- arg_width = atoi(args[++argidx].c_str());
+ arg_width = std::stoi(args[++argidx]);
continue;
}
break;