aboutsummaryrefslogtreecommitdiffstats
path: root/passes/tests
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 /passes/tests
parentee7c970367c68fe1a02a237ed01f2845a03cf9b2 (diff)
downloadyosys-48d0f994064557dc0832748e17133ee2eac88cbf.tar.gz
yosys-48d0f994064557dc0832748e17133ee2eac88cbf.tar.bz2
yosys-48d0f994064557dc0832748e17133ee2eac88cbf.zip
stoi -> atoi
Diffstat (limited to 'passes/tests')
-rw-r--r--passes/tests/test_abcloop.cc4
-rw-r--r--passes/tests/test_autotb.cc4
-rw-r--r--passes/tests/test_cell.cc4
3 files changed, 6 insertions, 6 deletions
diff --git a/passes/tests/test_abcloop.cc b/passes/tests/test_abcloop.cc
index d5a167db1..5d5466afe 100644
--- a/passes/tests/test_abcloop.cc
+++ b/passes/tests/test_abcloop.cc
@@ -268,11 +268,11 @@ struct TestAbcloopPass : public Pass {
for (argidx = 1; argidx < GetSize(args); argidx++)
{
if (args[argidx] == "-n" && argidx+1 < GetSize(args)) {
- num_iter = std::stoi(args[++argidx]);
+ num_iter = atoi(args[++argidx].c_str());
continue;
}
if (args[argidx] == "-s" && argidx+1 < GetSize(args)) {
- xorshift32_state = std::stoi(args[++argidx]);
+ xorshift32_state = atoi(args[++argidx].c_str());
continue;
}
break;
diff --git a/passes/tests/test_autotb.cc b/passes/tests/test_autotb.cc
index 198007b87..bfb1d6642 100644
--- a/passes/tests/test_autotb.cc
+++ b/passes/tests/test_autotb.cc
@@ -360,11 +360,11 @@ struct TestAutotbBackend : public Backend {
for (argidx = 1; argidx < GetSize(args); argidx++)
{
if (args[argidx] == "-n" && argidx+1 < GetSize(args)) {
- num_iter = std::stoi(args[++argidx]);
+ num_iter = atoi(args[++argidx].c_str());
continue;
}
if (args[argidx] == "-seed" && argidx+1 < GetSize(args)) {
- seed = std::stoi(args[++argidx]);
+ seed = atoi(args[++argidx].c_str());
continue;
}
break;
diff --git a/passes/tests/test_cell.cc b/passes/tests/test_cell.cc
index 7c58ec158..e360b5edb 100644
--- a/passes/tests/test_cell.cc
+++ b/passes/tests/test_cell.cc
@@ -730,11 +730,11 @@ struct TestCellPass : public Pass {
for (argidx = 1; argidx < GetSize(args); argidx++)
{
if (args[argidx] == "-n" && argidx+1 < GetSize(args)) {
- num_iter = std::stoi(args[++argidx]);
+ num_iter = atoi(args[++argidx].c_str());
continue;
}
if (args[argidx] == "-s" && argidx+1 < GetSize(args)) {
- xorshift32_state = std::stoi(args[++argidx]);
+ xorshift32_state = atoi(args[++argidx].c_str());
continue;
}
if (args[argidx] == "-map" && argidx+1 < GetSize(args)) {