diff options
author | Jack Lloyd <[email protected]> | 2018-12-10 10:43:19 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-10 10:43:19 -0500 |
commit | efd1d99a291738786e353e28598e86e5dd08803d (patch) | |
tree | cb8c5e59708ddd273098af8dc40193cbf8953959 /src/lib/tls/tls_handshake_io.cpp | |
parent | 965a8bfa31553e439898100913150ea4df1f734e (diff) |
Fix some MSVC warnings
Diffstat (limited to 'src/lib/tls/tls_handshake_io.cpp')
-rw-r--r-- | src/lib/tls/tls_handshake_io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tls/tls_handshake_io.cpp b/src/lib/tls/tls_handshake_io.cpp index af97c2545..47a9ad6d2 100644 --- a/src/lib/tls/tls_handshake_io.cpp +++ b/src/lib/tls/tls_handshake_io.cpp @@ -109,7 +109,7 @@ Stream_Handshake_IO::format(const std::vector<uint8_t>& msg, const size_t buf_size = msg.size(); - send_buf[0] = type; + send_buf[0] = static_cast<uint8_t>(type); store_be24(&send_buf[1], buf_size); @@ -354,7 +354,7 @@ Datagram_Handshake_IO::format_fragment(const uint8_t fragment[], { std::vector<uint8_t> send_buf(12 + frag_len); - send_buf[0] = type; + send_buf[0] = static_cast<uint8_t>(type); store_be24(&send_buf[1], msg_len); |