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)