aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ocb.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-10-01 05:28:59 -0400
committerJack Lloyd <[email protected]>2018-10-01 05:28:59 -0400
commitb96189789154222a8de57e31deb457be4208b4b3 (patch)
tree3e507015919fe4c73ccdabd3903fdcf178d5fd1b /src/tests/test_ocb.cpp
parent388530b25b3de0e33f85612d91721dc190b3347d (diff)
Fix more MSVC warnings
Diffstat (limited to 'src/tests/test_ocb.cpp')
-rw-r--r--src/tests/test_ocb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_ocb.cpp b/src/tests/test_ocb.cpp
index 169a86dd9..42c1f0e24 100644
--- a/src/tests/test_ocb.cpp
+++ b/src/tests/test_ocb.cpp
@@ -213,7 +213,7 @@ class OCB_Wide_Long_KAT_Tests final : public Text_Based_Test
std::vector<uint8_t> key(bs);
for(size_t i = 0; i != bs; ++i)
- key[i] = 0xA0 + i;
+ key[i] = static_cast<uint8_t>(0xA0 + i);
enc.set_key(key);
@@ -225,7 +225,7 @@ class OCB_Wide_Long_KAT_Tests final : public Text_Based_Test
{
std::vector<uint8_t> S(i);
for(size_t j = 0; j != S.size(); ++j)
- S[j] = 0x50 + j;
+ S[j] = static_cast<uint8_t>(0x50 + j);
Botan::store_be(static_cast<uint16_t>(3 * i + 1), &N[0]);