aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs
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 /techlibs
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 'techlibs')
-rw-r--r--techlibs/common/synth.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc
index 555de9fba..432ab3217 100644
--- a/techlibs/common/synth.cc
+++ b/techlibs/common/synth.cc
@@ -140,7 +140,7 @@ struct SynthPass : public ScriptPass
continue;
}
if (args[argidx] == "-lut") {
- lut = atoi(args[++argidx].c_str());
+ lut = std::stoi(args[++argidx]);
continue;
}
if (args[argidx] == "-nofsm") {