Fix fd_t variable casting on Windows platform

event_accepted() already accepts fd_t type and there is no reason to cast it to int type
Moreover, on Windows x64 this leads to truncation memsize -> int
This commit is contained in:
Maks Naumov
2018-04-19 12:38:06 +03:00
committed by GitHub
parent c971445025
commit 989dfc7801

View File

@@ -131,7 +131,7 @@ void zmq::tcp_listener_t::in_event ()
session->inc_seqnum ();
launch_child (session);
send_attach (session, engine, false);
socket->event_accepted (endpoint, (int) fd);
socket->event_accepted (endpoint, fd);
}
void zmq::tcp_listener_t::close ()