Francois Gouget : ws2_32: Make sure INVALID_SOCKET is correctly typed.
Module: wine Branch: master Commit: 2a4aea0918c26c4574f661cf66932cf719d4f017 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2a4aea0918c26c4574f661cf66... Author: Francois Gouget <fgouget(a)free.fr> Date: Mon May 26 17:38:53 2008 +0200 ws2_32: Make sure INVALID_SOCKET is correctly typed. --- include/winsock.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/winsock.h b/include/winsock.h index 9187f41..dd202ea 100644 --- a/include/winsock.h +++ b/include/winsock.h @@ -395,7 +395,7 @@ typedef UINT_PTR SOCKET; * This is used instead of -1, since the * SOCKET type is unsigned. */ -#define INVALID_SOCKET (~0) +#define INVALID_SOCKET (SOCKET)(~0) #define SOCKET_ERROR (-1) typedef struct WS(sockaddr)
participants (1)
-
Alexandre Julliard