diff options
Diffstat (limited to 'ACE/ace/Functor.inl')
-rw-r--r-- | ACE/ace/Functor.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/ace/Functor.inl b/ACE/ace/Functor.inl index ed5b8c9cc9d..65da8feec6d 100644 --- a/ACE/ace/Functor.inl +++ b/ACE/ace/Functor.inl @@ -179,7 +179,7 @@ ACE_Hash<char *>::operator () (const char *t) const ACE_INLINE unsigned long ACE_Hash<void *>::operator () (const void *t) const { - return (unsigned long)((ptrdiff_t) t); + return static_cast<unsigned long> (reinterpret_cast<uintptr_t> (t)); } /***********************************************************************/ |