From 061a00159099cd4236e9bc70d09731c8cb89afd9 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Tue, 1 May 2012 17:54:52 -0400 Subject: [PATCH] ThreadSocketHandler2(): cast to avoid signed/unsigned warning --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.cpp b/src/net.cpp index d218dcfb5db..5d1a1570505 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -621,7 +621,7 @@ void ThreadSocketHandler2(void* parg) if (nSelect == SOCKET_ERROR) { int nErr = WSAGetLastError(); - if (hSocketMax > -1) + if (hSocketMax > (SOCKET) -1) { printf("socket select error %d\n", nErr); for (unsigned int i = 0; i <= hSocketMax; i++)