X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94e0018723919fe2ca2f5b5f0a42804c16dbf3a1..586c455167ef67ac2920db45e48f8509b8be8d31:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 36a9dc1090..0d619a77c2 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -1814,7 +1814,11 @@ wxSocketServer::wxSocketServer(const wxSockAddress& addr, return; } - wxLogTrace( wxTRACE_Socket, wxT("wxSocketServer on fd %d"), m_impl->m_fd ); + // Notice that we need a cast as SOCKET is 64 bit under Win64 and that the + // cast is safe because a SOCKET is a handle and so limited to 32 (or, + // actually, even 24) bit values anyhow. + wxLogTrace( wxTRACE_Socket, wxT("wxSocketServer on fd %u"), + static_cast(m_impl->m_fd) ); } // -------------------------------------------------------------------------- @@ -2111,7 +2115,7 @@ wxFORCE_LINK_MODULE( socketiohandler ) #endif // same for ManagerSetter in the MSW file -#ifdef __WXMSW__ +#ifdef __WINDOWS__ wxFORCE_LINK_MODULE( mswsocket ) #endif