Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62556 - trunk/boost/asio/detail/impl
From: chris_at_[hidden]
Date: 2010-06-08 05:01:40


Author: chris_kohlhoff
Date: 2010-06-08 05:01:39 EDT (Tue, 08 Jun 2010)
New Revision: 62556
URL: http://svn.boost.org/trac/boost/changeset/62556

Log:
Ensure unsigned char is used with isdigit. Refs #4201.

Text files modified:
   trunk/boost/asio/detail/impl/socket_ops.ipp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/asio/detail/impl/socket_ops.ipp
==============================================================================
--- trunk/boost/asio/detail/impl/socket_ops.ipp (original)
+++ trunk/boost/asio/detail/impl/socket_ops.ipp 2010-06-08 05:01:39 EDT (Tue, 08 Jun 2010)
@@ -2185,7 +2185,7 @@
 #if defined(AI_NUMERICSERV)
       (hints->ai_flags & AI_NUMERICSERV) ||
 #endif
- isdigit(serv[0]))
+ isdigit(static_cast<unsigned char>(serv[0])))
   {
     int port = htons(atoi(serv));
     if (hints->ai_socktype)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk