Ticket #4201: foo
| File foo, 341 bytes (added by , 12 years ago) |
|---|
| Line | |
|---|---|
| 1 | --- socket_ops.hpp 2010-05-07 21:57:38 |
| 2 | +++ socket_ops.hpp.fix-isdigit 2010-05-07 22:04:15 |
| 3 | @@ -1302,7 +1302,7 @@ |
| 4 | #if defined(AI_NUMERICSERV) |
| 5 | (hints->ai_flags & AI_NUMERICSERV) || |
| 6 | #endif |
| 7 | - isdigit(serv[0])) |
| 8 | + isdigit(static_cast<unsigned char>(serv[0]))) |
| 9 | { |
| 10 | int port = htons(atoi(serv)); |
| 11 | if (hints->ai_socktype) |
