Fix type mismatch in wxLogTrace() call in wxSocket.
Cast socket handle to a 32 bit value as we use it with "%d" (or "%u" now as it makes more sense) format specifier to avoid problems with type mismatches under Win64. Closes #14204. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b7775a521f
commit
45cecdf943
@ -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<unsigned>(m_impl->m_fd) );
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user