mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-15 15:16:52 +02:00
Fix integer narrowing issues.
This commit is contained in:
@@ -138,7 +138,7 @@ void zmq::tcp_connecter_t::out_event ()
|
||||
// Shut the connecter down.
|
||||
terminate ();
|
||||
|
||||
socket->event_connected (endpoint, fd);
|
||||
socket->event_connected (endpoint, (int) fd);
|
||||
}
|
||||
|
||||
void zmq::tcp_connecter_t::timer_event (int id_)
|
||||
@@ -352,6 +352,6 @@ void zmq::tcp_connecter_t::close ()
|
||||
const int rc = ::close (s);
|
||||
errno_assert (rc == 0);
|
||||
#endif
|
||||
socket->event_closed (endpoint, s);
|
||||
socket->event_closed (endpoint, (int) s);
|
||||
s = retired_fd;
|
||||
}
|
||||
|
Reference in New Issue
Block a user