From adf062c2776a1ca57958bf2269781e0aaa73d321 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 29 Nov 2010 13:14:40 +0000 Subject: Overflow warning in MSVC --- src/cert/cvc/ecdsa_sig.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cert/cvc') diff --git a/src/cert/cvc/ecdsa_sig.cpp b/src/cert/cvc/ecdsa_sig.cpp index dba2ece8d..1b3940250 100644 --- a/src/cert/cvc/ecdsa_sig.cpp +++ b/src/cert/cvc/ecdsa_sig.cpp @@ -32,7 +32,8 @@ MemoryVector ECDSA_Signature::DER_encode() const MemoryVector ECDSA_Signature::get_concatenation() const { - u32bit enc_len = m_r > m_s ? m_r.bytes() : m_s.bytes(); // use the larger + // use the larger + const size_t enc_len = m_r > m_s ? m_r.bytes() : m_s.bytes(); SecureVector sv_r = BigInt::encode_1363(m_r, enc_len); SecureVector sv_s = BigInt::encode_1363(m_s, enc_len); -- cgit v1.2.3