Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-02-02 06:39:17


Author: chris_kohlhoff
Date: 2008-02-02 06:39:17 EST (Sat, 02 Feb 2008)
New Revision: 43055
URL: http://svn.boost.org/trac/boost/changeset/43055

Log:
Fix "possible loss of data" warning when building for Windows 2000 targets.

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

Modified: trunk/boost/asio/detail/socket_ops.hpp
==============================================================================
--- trunk/boost/asio/detail/socket_ops.hpp (original)
+++ trunk/boost/asio/detail/socket_ops.hpp 2008-02-02 06:39:17 EST (Sat, 02 Feb 2008)
@@ -1825,7 +1825,8 @@
     if (gni_t gni = (gni_t)::GetProcAddress(winsock_module, "getnameinfo"))
     {
       clear_error(ec);
- int error = gni(addr, addrlen, host, static_cast<DWORD>(hostlen),
+ int error = gni(addr, static_cast<int>(addrlen),
+ host, static_cast<DWORD>(hostlen),
           serv, static_cast<DWORD>(servlen), flags);
       return ec = translate_addrinfo_error(error);
     }


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