Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57145 - sandbox/task/boost/task/detail
From: oliver.kowalke_at_[hidden]
Date: 2009-10-25 04:15:03


Author: olli
Date: 2009-10-25 04:15:01 EDT (Sun, 25 Oct 2009)
New Revision: 57145
URL: http://svn.boost.org/trac/boost/changeset/57145

Log:
- correction related to amic-ops for WIndows

Text files modified:
   sandbox/task/boost/task/detail/atomic_interlocked.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/task/boost/task/detail/atomic_interlocked.hpp
==============================================================================
--- sandbox/task/boost/task/detail/atomic_interlocked.hpp (original)
+++ sandbox/task/boost/task/detail/atomic_interlocked.hpp 2009-10-25 04:15:01 EDT (Sun, 25 Oct 2009)
@@ -26,7 +26,7 @@
 {
         BOOST_INTERLOCKED_EXCHANGE(
                         reinterpret_cast< long volatile * >( object),
- reinterpret_cast< long >( desired) );
+ static_cast< long >( desired) );
 }
 
 inline
@@ -34,8 +34,8 @@
 {
         uint32_t prev = BOOST_INTERLOCKED_COMPARE_EXCHANGE(
                         reinterpret_cast< long volatile * >( object),
- reinterpret_cast< long >( desired),
- reinterpret_cast< long >( * expected) );
+ static_cast< long >( desired),
+ static_cast< long >( * expected) );
         if ( prev != * expected)
         {
                 * expected = prev;


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