|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80454 - trunk/boost/atomic/detail
From: tim_at_[hidden]
Date: 2012-09-08 12:36:12
Author: timblechmann
Date: 2012-09-08 12:36:11 EDT (Sat, 08 Sep 2012)
New Revision: 80454
URL: http://svn.boost.org/trac/boost/changeset/80454
Log:
atomic: fix const-correctnes of double-width load
Text files modified:
trunk/boost/atomic/detail/gcc-x86.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/atomic/detail/gcc-x86.hpp
==============================================================================
--- trunk/boost/atomic/detail/gcc-x86.hpp (original)
+++ trunk/boost/atomic/detail/gcc-x86.hpp 2012-09-08 12:36:11 EDT (Sat, 08 Sep 2012)
@@ -1556,11 +1556,11 @@
template<typename T>
T
-platform_load64(volatile T * ptr)
+platform_load64(const volatile T * ptr)
{
T expected = *ptr;
do {
- } while (!platform_cmpxchg64_strong(expected, expected, ptr));
+ } while (!platform_cmpxchg64_strong(expected, expected, const_cast<volatile T*>(ptr)));
return expected;
}
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