]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/gsocket.c
AddBook ignores wxMac paths (still won't work)
[wxWidgets.git] / src / unix / gsocket.c
index 3aa289c473dd036e33b5317176ada15340aeb519..0da32b61eb9741d64628d705b87af43a80b9bc57 100644 (file)
@@ -1499,7 +1499,9 @@ GSocketError GAddress_INET_SetPortName(GAddress *address, const char *port,
   se = getservbyname(port, protocol);
   if (!se)
   {
-    if (isdigit(port[0]))
+    /* the cast to int suppresses compiler warnings about subscript having the
+       type char */
+    if (isdigit((int)port[0]))
     {
       int port_int;