Ticket #4201: foo

File foo, 341 bytes (added by anonymous, 12 years ago)

Patch to boost/asio/detail/socket_ops.hpp to add a static_cast to ensure use of a zero-extending move of serv[0]

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)