]> git.saurik.com Git - wxWidgets.git/commitdiff
use INVALID_SOCKET instead of -1 to avoid signed/unsigned comparison warning
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 25 Dec 2008 20:28:14 +0000 (20:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 25 Dec 2008 20:28:14 +0000 (20:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/socket.cpp

index f4e5d373a0e24722d3d6b630d954d3543531a19a..e99a4a017fed031202f39ac6cc883038c0396d89 100644 (file)
@@ -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 */