aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-01 17:54:52 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-01 17:54:52 -0400
commit061a00159099cd4236e9bc70d09731c8cb89afd9 (patch)
treeb663308e20751829fe7229b23203a97f980c57c8 /src/net.cpp
parent10ab9c2f4279e182f61a86a65f3a9b9cdba1df83 (diff)
ThreadSocketHandler2(): cast to avoid signed/unsigned warning
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index d218dcfb5d..5d1a157050 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++)