Fix integer narrowing issues.

This commit is contained in:
evoskuil
2015-04-21 22:26:32 -07:00
parent 88ac63189c
commit 30bd7c481e
11 changed files with 34 additions and 28 deletions

View File

@@ -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;
}