changeset 2448:4955ede00c36 draft

Merge pull request #1225 from Diapolo/net_cpp_if_clause fix an incorrect if-clause in net.cpp
author Jeff Garzik <jgarzik@exmulti.com>
date Wed, 09 May 2012 07:50:27 -0700
parents dd18af87d701 (current diff) 2e1344b8ea75 (diff)
children b2ad62153a04
files
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++)