summaryrefslogtreecommitdiff
path: root/ace/SOCK_IO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/SOCK_IO.cpp')
-rw-r--r--ace/SOCK_IO.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/ace/SOCK_IO.cpp b/ace/SOCK_IO.cpp
index 1f233aa88db..ec153ed48d2 100644
--- a/ace/SOCK_IO.cpp
+++ b/ace/SOCK_IO.cpp
@@ -36,7 +36,15 @@ ACE_SOCK_IO::recvv (iovec *io_vec,
io_vec->iov_base = 0;
// Check the status of the current socket.
- switch (ACE_OS::select (int (this->get_handle ()) + 1,
+ int select_width;
+# if defined (ACE_WIN64)
+ // This arg is ignored on Windows and causes pointer truncation
+ // warnings on 64-bit compiles.
+ select_width = 0;
+# else
+ select_width = int (this->get_handle ()) + 1;
+# endif /* ACE_WIN64 */
+ switch (ACE_OS::select (select_width,
handle_set,
0, 0,
timeout))