From 1e89e629a30e7efa86bd1191c5aa49b8d77a6d18 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 10 Sep 2017 08:12:11 -0400 Subject: Fix a couple more VC warnings --- src/tests/test_ocb.cpp | 2 +- src/tests/test_passhash.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 key(keylen / 8); - key[keylen / 8 - 1] = taglen; + key[keylen / 8 - 1] = static_cast(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)) -- cgit v1.2.3