summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h')
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h
index 5d07ebec18f..3cc21b59de3 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h
@@ -35,6 +35,7 @@
#include "ace/Hash_Map_Manager.h"
#include "ace/Null_Mutex.h"
+#include "ace/Truncate.h"
#include "ace/SString.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -117,7 +118,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);
}
};