changeset 2431:2e1344b8ea75 draft

fix an incorrect if-clause in net.cpp
author Philip Kaufmann <phil.kaufmann@t-online.de>
date Tue, 08 May 2012 23:02:48 +0200
parents 9c78dc619fec
children 4955ede00c36
files src/net.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -716,7 +716,7 @@
         if (nSelect == SOCKET_ERROR)
         {
             int nErr = WSAGetLastError();
-            if (hSocketMax > (SOCKET) -1)
+            if (hSocketMax != INVALID_SOCKET)
             {
                 printf("socket select error %d\n", nErr);
                 for (unsigned int i = 0; i <= hSocketMax; i++)