Merge [69246] to release. Fixes #4478.

[SVN r70435]
This commit is contained in:
Peter Dimov
2011-03-22 23:29:35 +00:00
parent 1086aff971
commit b978919dd1

View 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 ];
}