From: Dimitri Schoolwerth Date: Fri, 6 Aug 2004 13:23:35 +0000 (+0000) Subject: fixed MSVC6 compiler warning X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/16abe93eb44fe991b8b618bc1049f56d68903297 fixed MSVC6 compiler warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/gsockmsw.h b/include/wx/msw/gsockmsw.h index 53b4a6f6bc..fad08dc3f6 100644 --- a/include/wx/msw/gsockmsw.h +++ b/include/wx/msw/gsockmsw.h @@ -152,7 +152,7 @@ inline int GSocket_Write(GSocket *socket, const char *buffer, int size) inline GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags) { return socket->Select(flags); } inline void GSocket_SetNonBlocking(GSocket *socket, int non_block) -{ socket->SetNonBlocking(non_block); } +{ socket->SetNonBlocking(!!non_block); } inline void GSocket_SetTimeout(GSocket *socket, unsigned long millisec) { socket->SetTimeout(millisec); } inline GSocketError GSocket_GetError(GSocket *socket)