From 8a5a7042f1eb9a0f3e13de7f23b8dc654333826d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 14 Mar 2008 14:17:28 +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/trunk@52493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/gsocket.cpp b/src/msw/gsocket.cpp index 2830549071..8cc501a98e 100644 --- a/src/msw/gsocket.cpp +++ b/src/msw/gsocket.cpp @@ -1465,7 +1465,7 @@ GSocketError GAddress_INET6_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; -- 2.50.0