mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 19:05:52 +00:00
stoi -> atoi
This commit is contained in:
parent
ee7c970367
commit
48d0f99406
41 changed files with 121 additions and 121 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue