Skip to content
Snippets Groups Projects
Commit 0a5338e0 authored by Sebastian Hahn's avatar Sebastian Hahn
Browse files

Sockets are unsigned on windows

this gets rid of a warning about signed/unsigned comparison
parent 10d9bcb2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment