From 0a5338e03cdf14ef80584c6ff8adeb49200b8a76 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Tue, 9 Aug 2011 10:59:03 +0200 Subject: Sockets are unsigned on windows this gets rid of a warning about signed/unsigned comparison --- src/common/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/compat.h b/src/common/compat.h index 98642e2d92..8e271ba905 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -401,7 +401,7 @@ typedef int socklen_t; #ifdef MS_WINDOWS #define tor_socket_t intptr_t -#define SOCKET_OK(s) ((s) != INVALID_SOCKET) +#define SOCKET_OK(s) ((unsigned)(s) != INVALID_SOCKET) #else #define tor_socket_t int #define SOCKET_OK(s) ((s) >= 0) -- cgit v1.2.3-54-g00ecf