]> git.saurik.com Git - wxWidgets.git/commitdiff
made code slightly more readable
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 6 Aug 2004 16:28:20 +0000 (16:28 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 6 Aug 2004 16:28:20 +0000 (16:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/gsockmsw.h

index fad08dc3f627a4750a6e698a486462f1882938d0..b94dae93d1691dd9b77d46d83644fd24a2659cb7 100644 (file)
@@ -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)