From: Dimitri Schoolwerth Date: Fri, 6 Aug 2004 16:28:20 +0000 (+0000) Subject: made code slightly more readable X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c21af6e5254c7a84697ba04c3b65cfed9085816a made code slightly more readable git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/gsockmsw.h b/include/wx/msw/gsockmsw.h index fad08dc3f6..b94dae93d1 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 != 0); } inline void GSocket_SetTimeout(GSocket *socket, unsigned long millisec) { socket->SetTimeout(millisec); } inline GSocketError GSocket_GetError(GSocket *socket)