diff options
Diffstat (limited to 'src/tests/test_tls_messages.cpp')
-rw-r--r-- | src/tests/test_tls_messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_tls_messages.cpp b/src/tests/test_tls_messages.cpp index 038b79085..364fdc0bf 100644 --- a/src/tests/test_tls_messages.cpp +++ b/src/tests/test_tls_messages.cpp @@ -78,7 +78,7 @@ class TLS_Message_Parsing_Test final : public Text_Based_Test std::vector<uint8_t> buf; for(Botan::TLS::Handshake_Extension_Type const& type : message.extension_types()) { - uint16_t u16type = type; + uint16_t u16type = static_cast<uint16_t>(type); buf.push_back(Botan::get_byte(0, u16type)); buf.push_back(Botan::get_byte(1, u16type)); } @@ -107,7 +107,7 @@ class TLS_Message_Parsing_Test final : public Text_Based_Test std::vector<uint8_t> buf; for(Botan::TLS::Handshake_Extension_Type const& type : message.extension_types()) { - uint16_t u16type = type; + uint16_t u16type = static_cast<uint16_t>(type); buf.push_back(Botan::get_byte(0, u16type)); buf.push_back(Botan::get_byte(1, u16type)); } |