use INVALID_SOCKET instead of -1 to avoid signed/unsigned comparison warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c6b1063250
commit
5b90e570c9
@ -1121,7 +1121,7 @@ wxSocketEventFlags wxSocketImpl::Select(wxSocketEventFlags flags)
|
||||
fd_set exceptfds;
|
||||
struct timeval tv;
|
||||
|
||||
if (m_fd == -1)
|
||||
if (m_fd == INVALID_SOCKET)
|
||||
return (wxSOCKET_LOST_FLAG & flags);
|
||||
|
||||
/* Do not use a static struct, Linux can garble it */
|
||||
|
Loading…
Reference in New Issue
Block a user