summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h')
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h
index 3154f1c4fde..920841f752c 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h
@@ -32,6 +32,7 @@
#include "orbsvcs/CosEvent/CEC_Defaults.h"
#include "orbsvcs/CosEvent/event_serv_export.h"
#include "ace/Hash_Map_Manager.h"
+#include "ace/Truncate.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -108,7 +109,7 @@ public:
{
public:
u_long operator() (PortableServer::ServantBase* const & ptr) const {
- return reinterpret_cast<u_long> (ptr);
+ return ACE_Utils::truncate_cast<u_long> ((intptr_t)ptr);
}
};