Browse Source

Cast socketfail to integer since SOCKET is an unsigned int on windows.

Con Kolivas 13 years ago
parent
commit
1afb794cb3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.h

+ 1 - 1
util.h

@@ -19,7 +19,7 @@
 	#include <winsock2.h>
 
 	#define SOCKETTYPE SOCKET
-	#define SOCKETFAIL(a) ((a) == SOCKET_ERROR)
+	#define SOCKETFAIL(a) ((int)(a) == SOCKET_ERROR)
 	#define INVSOCK INVALID_SOCKET
 	#define INVINETADDR INADDR_NONE
 	#define CLOSESOCKET closesocket