X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb5a951418acd22d69a7f1973319f47190fbac79..c6182d489c7cf71c9dba511e3f68671f5b17d50d:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 33690a3322..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) ); } // --------------------------------------------------------------------------