diff options
Diffstat (limited to 'TAO/tao/TransportCurrent/IIOP_Current_Impl.cpp')
-rw-r--r-- | TAO/tao/TransportCurrent/IIOP_Current_Impl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/tao/TransportCurrent/IIOP_Current_Impl.cpp b/TAO/tao/TransportCurrent/IIOP_Current_Impl.cpp index e9cd92fc9d0..2d7a1ff7861 100644 --- a/TAO/tao/TransportCurrent/IIOP_Current_Impl.cpp +++ b/TAO/tao/TransportCurrent/IIOP_Current_Impl.cpp @@ -1,6 +1,7 @@ // $Id$ #include "ace/INET_Addr.h" +#include "ace/Truncate.h" #include "tao/IIOP_Connection_Handler.h" #include "tao/IIOP_Transport.h" #include "tao/Transport_Selection_Guard.h" @@ -70,7 +71,7 @@ namespace TAO #if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0) // Need to use cast to pacify windows compilers complaining // about the implicit HANDLE -> CORBA::Long conversion. - return (CORBA::Long) this->handler ()->get_handle (); + return ACE_Utils::truncate_cast<CORBA::Long> ((intptr_t)this->handler ()->get_handle ()); #else throw ::CORBA::NO_IMPLEMENT (); #endif |