|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69246 - trunk/boost/smart_ptr/detail
From: pdimov_at_[hidden]
Date: 2011-02-24 15:53:47
Author: pdimov
Date: 2011-02-24 15:53:46 EST (Thu, 24 Feb 2011)
New Revision: 69246
URL: http://svn.boost.org/trac/boost/changeset/69246
Log:
Apply patch. Refs #4478.
Text files modified:
trunk/boost/smart_ptr/detail/spinlock_pool.hpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/boost/smart_ptr/detail/spinlock_pool.hpp
==============================================================================
--- trunk/boost/smart_ptr/detail/spinlock_pool.hpp (original)
+++ trunk/boost/smart_ptr/detail/spinlock_pool.hpp 2011-02-24 15:53:46 EST (Thu, 24 Feb 2011)
@@ -41,7 +41,11 @@
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 ];
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk