mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 00:46:05 +01:00
Problem: implicit cast between signed and unsigned types on some platforms
Solution: perform explicit cast
This commit is contained in:
parent
95eb8a7a99
commit
c476cf3d14
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user