From b978919dd16da11f982c6b1a2134309c895ab382 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 22 Mar 2011 23:29:35 +0000 Subject: [PATCH] Merge [69246] to release. Fixes #4478. [SVN r70435] --- include/boost/smart_ptr/detail/spinlock_pool.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/smart_ptr/detail/spinlock_pool.hpp b/include/boost/smart_ptr/detail/spinlock_pool.hpp index 0e2e08a..f09d5c6 100644 --- a/include/boost/smart_ptr/detail/spinlock_pool.hpp +++ b/include/boost/smart_ptr/detail/spinlock_pool.hpp @@ -41,7 +41,11 @@ public: static spinlock & spinlock_for( void const * pv ) { +#if defined(__VMS) && __INITIAL_POINTER_SIZE == 64 + std::size_t i = reinterpret_cast< unsigned long long >( pv ) % 41; +#else std::size_t i = reinterpret_cast< std::size_t >( pv ) % 41; +#endif return pool_[ i ]; }