warning fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-05-19 23:36:50 +00:00
parent c989314692
commit 72c71d3972

View 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;