aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_runner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_runner.cpp')
-rw-r--r--src/tests/test_runner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_runner.cpp b/src/tests/test_runner.cpp
index 8d3f9b72c..e7862e90d 100644
--- a/src/tests/test_runner.cpp
+++ b/src/tests/test_runner.cpp
@@ -71,7 +71,7 @@ class Testsuite_RNG final : public Botan::RandomNumberGenerator
for(size_t i = 0; i != ROUNDS; ++i)
{
- m_a += i;
+ m_a += static_cast<uint32_t>(i);
m_a = Botan::rotl<9>(m_a);
m_b ^= m_a;
@@ -184,7 +184,7 @@ int Test_Runner::run(const Test_Options& opts)
const size_t failed = run_tests(req, i, opts.test_runs());
if(failed > 0)
- return failed;
+ return static_cast<int>(failed);
}
return 0;