Browse Source

ThreadSocketHandler2(): cast to avoid signed/unsigned warning

miguelfreitas
Jeff Garzik 13 years ago committed by Jeff Garzik
parent
commit
061a001590
  1. 2
      src/net.cpp

2
src/net.cpp

@ -621,7 +621,7 @@ void ThreadSocketHandler2(void* parg)
if (nSelect == SOCKET_ERROR) if (nSelect == SOCKET_ERROR)
{ {
int nErr = WSAGetLastError(); int nErr = WSAGetLastError();
if (hSocketMax > -1) if (hSocketMax > (SOCKET) -1)
{ {
printf("socket select error %d\n", nErr); printf("socket select error %d\n", nErr);
for (unsigned int i = 0; i <= hSocketMax; i++) for (unsigned int i = 0; i <= hSocketMax; i++)

Loading…
Cancel
Save