stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r330145 - /incubator/stdcxx/trunk/include/rw/_mutex.h
Date Tue, 01 Nov 2005 22:56:46 GMT
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  <sebor@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));
 }
 



Mime
View raw message