warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user