You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2005/11/01 23:56:46 UTC
svn commit: r330145 - /incubator/stdcxx/trunk/include/rw/_mutex.h
Author: sebor
Date: Tue Nov 1 14:56:43 2005
New Revision: 330145
URL: http://svn.apache.org/viewcvs?rev=330145&view=rev
Log:
2005-11-01 Martin Sebor <se...@roguewave.com>
STDCXX-61
* _mutex.h (__rw_atomic_preincrement): Fixed an egregious typo
in a reinterpet_cast from a reference to pointer not caught by
MSVC.
(__rw_atomic_predecrement): Same.
(__rw_atomic_exchange): Same.
Modified:
incubator/stdcxx/trunk/include/rw/_mutex.h
Modified: incubator/stdcxx/trunk/include/rw/_mutex.h
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/include/rw/_mutex.h?rev=330145&r1=330144&r2=330145&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/rw/_mutex.h (original)
+++ incubator/stdcxx/trunk/include/rw/_mutex.h Tue Nov 1 14:56:43 2005
@@ -1352,7 +1352,7 @@
__rw_atomic_preincrement (int &__x, bool)
{
_RWSTD_COMPILE_ASSERT (sizeof __x == sizeof (long));
- return InterlockedIncrement (_RWSTD_REINTERPRET_CAST (long*, __x));
+ return InterlockedIncrement (_RWSTD_REINTERPRET_CAST (long*, &__x));
}
@@ -1368,7 +1368,7 @@
__rw_atomic_predecrement (int &__x, bool)
{
_RWSTD_COMPILE_ASSERT (sizeof __x == sizeof (long));
- return InterlockedDecrement (_RWSTD_REINTERPRET_CAST (long*, __x));
+ return InterlockedDecrement (_RWSTD_REINTERPRET_CAST (long*, &__x));
}
@@ -1384,7 +1384,7 @@
__rw_atomic_exchange (int &__x, int __y, bool)
{
_RWSTD_COMPILE_ASSERT (sizeof __x == sizeof (long));
- return InterlockedExchange (_RWSTD_REINTERPRET_CAST (long*, __x),
+ return InterlockedExchange (_RWSTD_REINTERPRET_CAST (long*, &__x),
_RWSTD_STATIC_CAST (long, __y));
}