Problem: implicit cast between signed and unsigned types on some platforms

Solution: perform explicit cast
This commit is contained in:
Simon Giesecke 2019-01-31 11:34:21 -05:00
parent 95eb8a7a99
commit c476cf3d14

View File

@ -54,7 +54,7 @@ zmq::stream_listener_base_t::~stream_listener_base_t ()
zmq::zmq_socklen_t
zmq::stream_listener_base_t::get_socket_address (sockaddr_storage *ss_) const
{
zmq_socklen_t sl = sizeof (*ss_);
zmq_socklen_t sl = static_cast<zmq_socklen_t> (sizeof (*ss_));
const int rc =
getsockname (_s, reinterpret_cast<struct sockaddr *> (ss_), &sl);