]> git.donarmstrong.com Git - rsem.git/blobdiff - boost/smart_ptr/detail/spinlock_pool.hpp
Updated boost to v1.55.0
[rsem.git] / boost / smart_ptr / detail / spinlock_pool.hpp
index 0e2e08ac80a8cc985bcf49a7a01d5cabf616ac2a..f09d5c64019d528c8a69686da7f794870a03360e 100644 (file)
@@ -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 ];
     }