aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/blif/blifparse.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 /frontends/blif/blifparse.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 'frontends/blif/blifparse.cc')
-rw-r--r--frontends/blif/blifparse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/blif/blifparse.cc b/frontends/blif/blifparse.cc
index a6a07863f..4852bb8ce 100644
--- a/frontends/blif/blifparse.cc
+++ b/frontends/blif/blifparse.cc
@@ -103,7 +103,7 @@ void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name, bo
if (len > 0) {
string num_str = wire_name.substr(i+1, len);
- int num = atoi(num_str.c_str()) & 0x0fffffff;
+ int num = std::stoi(num_str) & 0x0fffffff;
blif_maxnum = std::max(blif_maxnum, num);
}
}