]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed bug for chars with ASCII value > 127, explicitly casting to an unsigned char...
authorJulian Smart <julian@anthemion.co.uk>
Fri, 14 Mar 2008 14:17:28 +0000 (14:17 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 14 Mar 2008 14:17:28 +0000 (14:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/gsocket.cpp

index 2830549071d8da88cca57b19743582b102da8b62..8cc501a98ecf917a8cabb42a2dbaa29591ee69a4 100644 (file)
@@ -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;