|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85755 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2013-09-17 18:03:29
Author: chris_kohlhoff
Date: 2013-09-17 18:03:29 EDT (Tue, 17 Sep 2013)
New Revision: 85755
URL: http://svn.boost.org/trac/boost/changeset/85755
Log:
Fix another socket descriptor comparison that doesn't work correctly if
the descriptor type is unsigned.
Text files modified:
trunk/boost/asio/detail/reactive_socket_accept_op.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/asio/detail/reactive_socket_accept_op.hpp
==============================================================================
--- trunk/boost/asio/detail/reactive_socket_accept_op.hpp Tue Sep 17 18:01:26 2013 (r85754)
+++ trunk/boost/asio/detail/reactive_socket_accept_op.hpp 2013-09-17 18:03:29 EDT (Tue, 17 Sep 2013) (r85755)
@@ -58,7 +58,7 @@
o->peer_endpoint_ ? &addrlen : 0, o->ec_, new_socket);
// On success, assign new connection to peer socket object.
- if (new_socket >= 0)
+ if (new_socket != invalid_socket)
{
socket_holder new_socket_holder(new_socket);
if (o->peer_endpoint_)
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