diff options
author | Dan Brown <[email protected]> | 2016-04-27 11:53:30 -0700 |
---|---|---|
committer | Dan Brown <[email protected]> | 2016-04-27 11:53:30 -0700 |
commit | b55e9bca0c747154aeeb188df9a8a6eda6d65124 (patch) | |
tree | c51c4662acbc3d1f6296a9419d1b0ce11a0db2be /src/lib/tls/msg_certificate.cpp | |
parent | 4ad555977b03cb92dfac0b87a00febe4d8e7ff5e (diff) |
Change calls to 'get_byte' to explicitly cast parameters and eliminate compiler warnings
Diffstat (limited to 'src/lib/tls/msg_certificate.cpp')
-rw-r--r-- | src/lib/tls/msg_certificate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tls/msg_certificate.cpp b/src/lib/tls/msg_certificate.cpp index 5be9379bd..32e3e17f0 100644 --- a/src/lib/tls/msg_certificate.cpp +++ b/src/lib/tls/msg_certificate.cpp @@ -73,14 +73,14 @@ std::vector<byte> Certificate::serialize() const const size_t cert_size = raw_cert.size(); for(size_t j = 0; j != 3; ++j) { - buf.push_back(get_byte<u32bit>(j+1, cert_size)); + buf.push_back(get_byte(j+1, static_cast<u32bit>(cert_size))); } buf += raw_cert; } const size_t buf_size = buf.size() - 3; for(size_t i = 0; i != 3; ++i) - buf[i] = get_byte<u32bit>(i+1, buf_size); + buf[i] = get_byte(i+1, static_cast<u32bit>(buf_size)); return buf; } |