Commit 1afb794cb3f90e52250a9f3393886c0a93a9e254

Con Kolivas 2012-10-07T13:56:28

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.h b/util.h
index aec827d..d5ac54c 100644
--- a/util.h
+++ b/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