From 5b90e570c9cd075069292da898cf23b8e9408f75 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 25 Dec 2008 20:28:14 +0000 Subject: [PATCH] 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 --- src/common/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/socket.cpp b/src/common/socket.cpp index f4e5d373a0..e99a4a017f 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -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 */ -- 2.45.2