aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/liberty
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-07 11:09:17 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-07 11:09:17 -0700
commit48d0f994064557dc0832748e17133ee2eac88cbf (patch)
treeff80fabc1b2196356dd3ebf0536b2d75e145282d /frontends/liberty
parentee7c970367c68fe1a02a237ed01f2845a03cf9b2 (diff)
downloadyosys-48d0f994064557dc0832748e17133ee2eac88cbf.tar.gz
yosys-48d0f994064557dc0832748e17133ee2eac88cbf.tar.bz2
yosys-48d0f994064557dc0832748e17133ee2eac88cbf.zip
stoi -> atoi
Diffstat (limited to 'frontends/liberty')
-rw-r--r--frontends/liberty/liberty.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/liberty/liberty.cc b/frontends/liberty/liberty.cc
index a6a65fdd8..14de95e07 100644
--- a/frontends/liberty/liberty.cc
+++ b/frontends/liberty/liberty.cc
@@ -430,13 +430,13 @@ void parse_type_map(std::map<std::string, std::tuple<int, int, bool>> &type_map,
goto next_type;
if (child->id == "bit_width")
- bit_width = std::stoi(child->value);
+ bit_width = atoi(child->value.c_str());
if (child->id == "bit_from")
- bit_from = std::stoi(child->value);
+ bit_from = atoi(child->value.c_str());
if (child->id == "bit_to")
- bit_to = std::stoi(child->value);
+ bit_to = atoi(child->value.c_str());
if (child->id == "downto" && (child->value == "0" || child->value == "false" || child->value == "FALSE"))
upto = true;