aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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))