aboutsummaryrefslogtreecommitdiffstats
path: root/passes/tests/test_abcloop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'passes/tests/test_abcloop.cc')
-rw-r--r--passes/tests/test_abcloop.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/tests/test_abcloop.cc b/passes/tests/test_abcloop.cc
index 5d5466afe..d5a167db1 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 = atoi(args[++argidx].c_str());
+ num_iter = std::stoi(args[++argidx]);
continue;
}
if (args[argidx] == "-s" && argidx+1 < GetSize(args)) {
- xorshift32_state = atoi(args[++argidx].c_str());
+ xorshift32_state = std::stoi(args[++argidx]);
continue;
}
break;