ThreadSocketHandler2(): cast to avoid signed/unsigned warning
This commit is contained in:
1 parent
10ab9c2f42
commit
061a001590
1 file changed
+1
-1
+1
-1
@@ -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++)
|
||||
|
||||
Reference in new issue
Block a user