From efd1d99a291738786e353e28598e86e5dd08803d Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 10 Dec 2018 10:43:19 -0500 Subject: Fix some MSVC warnings --- src/tests/test_tls.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tests/test_tls.cpp') diff --git a/src/tests/test_tls.cpp b/src/tests/test_tls.cpp index 8a327b652..9b734bdea 100644 --- a/src/tests/test_tls.cpp +++ b/src/tests/test_tls.cpp @@ -358,11 +358,12 @@ class Test_TLS_Ciphersuites : public Test for(size_t csuite_id = 0; csuite_id <= 0xFFFF; ++csuite_id) { - Botan::TLS::Ciphersuite ciphersuite = Botan::TLS::Ciphersuite::by_id(csuite_id); + const uint16_t csuite_id16 = static_cast(csuite_id); + Botan::TLS::Ciphersuite ciphersuite = Botan::TLS::Ciphersuite::by_id(csuite_id16); if(ciphersuite.valid()) { - result.test_eq("Valid Ciphersuite is not SCSV", Botan::TLS::Ciphersuite::is_scsv(csuite_id), false); + result.test_eq("Valid Ciphersuite is not SCSV", Botan::TLS::Ciphersuite::is_scsv(csuite_id16), false); if(ciphersuite.cbc_ciphersuite() == false) { -- cgit v1.2.3