From a0a2b66b3b6ba9dd94f924ef9639570f4a4ae2b6 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Wed, 27 Apr 2016 15:21:26 -0700 Subject: Add explicit static_cast operations to eliminate implicit cast compiler warnings. --- src/lib/tls/msg_cert_verify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/tls/msg_cert_verify.cpp') diff --git a/src/lib/tls/msg_cert_verify.cpp b/src/lib/tls/msg_cert_verify.cpp index 0d157dc57..2598255eb 100644 --- a/src/lib/tls/msg_cert_verify.cpp +++ b/src/lib/tls/msg_cert_verify.cpp @@ -65,7 +65,7 @@ std::vector Certificate_Verify::serialize() const buf.push_back(Signature_Algorithms::sig_algo_code(m_sig_algo)); } - const u16bit sig_len = m_signature.size(); + const u16bit sig_len = static_cast(m_signature.size()); buf.push_back(get_byte(0, sig_len)); buf.push_back(get_byte(1, sig_len)); buf += m_signature; -- cgit v1.2.3