From 61090a1a07aa5d54b7af81509523a598551c0fb5 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 14 Mar 2008 14:17:14 +0000 Subject: [PATCH] Fixed bug for chars with ASCII value > 127, explicitly casting to an unsigned char (Sebastian Gottschalk) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gsocket.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/msw/gsocket.cpp b/src/msw/gsocket.cpp index 62f3bfb076..353128c754 100644 --- a/src/msw/gsocket.cpp +++ b/src/msw/gsocket.cpp @@ -870,9 +870,9 @@ GSocketEventFlags GSocket::Select(GSocketEventFlags flags) result |= GSOCK_INPUT_FLAG; if (m_server && m_stream) - { - /* This is a TCP server socket that detected a connection. - While the INPUT_FLAG is also set, it doesn't matter on + { + /* This is a TCP server socket that detected a connection. + While the INPUT_FLAG is also set, it doesn't matter on this kind of sockets, as we can only Accept() from them. */ result |= GSOCK_CONNECTION_FLAG; m_detected |= GSOCK_CONNECTION_FLAG; @@ -1451,7 +1451,7 @@ GSocketError GAddress_INET_SetPortName(GAddress *address, const char *port, se = getservbyname(port, protocol); if (!se) { - if (isdigit(port[0])) + if (isdigit((unsigned char) port[0])) { int port_int;