summaryrefslogtreecommitdiff
path: root/ace/Select_Reactor_T.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-07-11 19:05:11 +0000
committerSteve Huston <shuston@riverace.com>2002-07-11 19:05:11 +0000
commit9d42538910817fe80869d5d7f5109bba571af5be (patch)
tree860046080856465eb0bc7c312b3be34a0a2d218d /ace/Select_Reactor_T.cpp
parente516d1c93fb273262c591f52e9c5f1d05606cf13 (diff)
downloadATCD-9d42538910817fe80869d5d7f5109bba571af5be.tar.gz
ChangeLogTag:Thu Jul 11 15:03:47 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/Select_Reactor_T.cpp')
-rw-r--r--ace/Select_Reactor_T.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/ace/Select_Reactor_T.cpp b/ace/Select_Reactor_T.cpp
index b3887d7d4a7..9a45c4183ff 100644
--- a/ace/Select_Reactor_T.cpp
+++ b/ace/Select_Reactor_T.cpp
@@ -1398,7 +1398,16 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::check_handles (void)
// variant since fstat always returns an error on socket FDs.
rd_mask.set_bit (handle);
- if (ACE_OS::select (int (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 (handle) + 1;
+# endif /* ACE_WIN64 */
+
+ if (ACE_OS::select (select_width,
rd_mask, 0, 0,
&time_poll) < 0)
{