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
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) );
}
// --------------------------------------------------------------------------