diff options
author | Jack Lloyd <[email protected]> | 2018-12-10 10:43:19 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-10 10:43:19 -0500 |
commit | efd1d99a291738786e353e28598e86e5dd08803d (patch) | |
tree | cb8c5e59708ddd273098af8dc40193cbf8953959 /src/tests/test_runner.cpp | |
parent | 965a8bfa31553e439898100913150ea4df1f734e (diff) |
Fix some MSVC warnings
Diffstat (limited to 'src/tests/test_runner.cpp')
-rw-r--r-- | src/tests/test_runner.cpp | 4 |
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; |