projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
workaround for MGL's weirdness: won't render rectangles of w=1 or h=1
[wxWidgets.git]
/
src
/
unix
/
gsocket.c
diff --git
a/src/unix/gsocket.c
b/src/unix/gsocket.c
index 3aa289c473dd036e33b5317176ada15340aeb519..0da32b61eb9741d64628d705b87af43a80b9bc57 100644
(file)
--- a/
src/unix/gsocket.c
+++ b/
src/unix/gsocket.c
@@
-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;