aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-10 08:12:11 -0400
committerJack Lloyd <[email protected]>2017-09-10 08:12:11 -0400
commit1e89e629a30e7efa86bd1191c5aa49b8d77a6d18 (patch)
tree57b7e4a02cb14521c379730060fc57268e63d9e3 /src
parent54ddc8ea26bcfbf55c15a943c44a4a8b233608cd (diff)
Fix a couple more VC warnings
Diffstat (limited to 'src')
-rw-r--r--src/tests/test_ocb.cpp2
-rw-r--r--src/tests/test_passhash.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_ocb.cpp b/src/tests/test_ocb.cpp
index 3b056fd12..ede15fb82 100644
--- a/src/tests/test_ocb.cpp
+++ b/src/tests/test_ocb.cpp
@@ -47,7 +47,7 @@ class OCB_Long_KAT_Tests : public Text_Based_Test
Botan::OCB_Decryption dec(aes->clone(), taglen / 8);
std::vector<uint8_t> key(keylen / 8);
- key[keylen / 8 - 1] = taglen;
+ key[keylen / 8 - 1] = static_cast<uint8_t>(taglen);
enc.set_key(key);
dec.set_key(key);
diff --git a/src/tests/test_passhash.cpp b/src/tests/test_passhash.cpp
index a583c0eb8..21085ff34 100644
--- a/src/tests/test_passhash.cpp
+++ b/src/tests/test_passhash.cpp
@@ -108,9 +108,9 @@ class Passhash9_Tests : public Text_Based_Test
}
}
- const size_t max_level = (Test::run_long_tests() ? 14 : 8);
+ const uint16_t max_level = (Test::run_long_tests() ? 14 : 8);
- for(size_t level = 1; level <= max_level; ++level)
+ for(uint16_t level = 1; level <= max_level; ++level)
{
const uint8_t alg_id = 1; // default used by generate_passhash9()
if(Botan::is_passhash9_alg_supported(alg_id))