16 lines
703 B
Text
16 lines
703 B
Text
|
$NetBSD: patch-include_OpenThreads_Atomic,v 1.1 2012/03/07 16:27:35 adam Exp $
|
||
|
|
||
|
Fix C error.
|
||
|
|
||
|
--- include/OpenThreads/Atomic.orig 2012-03-06 16:27:45.000000000 +0000
|
||
|
+++ include/OpenThreads/Atomic
|
||
|
@@ -241,7 +241,7 @@ _OPENTHREADS_ATOMIC_INLINE bool
|
||
|
AtomicPtr::assign(void* ptrNew, const void* const ptrOld)
|
||
|
{
|
||
|
#if defined(_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS)
|
||
|
- return __sync_bool_compare_and_swap(&_ptr, ptrOld, ptrNew);
|
||
|
+ return __sync_bool_compare_and_swap(&_ptr, (void *)ptrOld, ptrNew);
|
||
|
#elif defined(_OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS)
|
||
|
return __compare_and_swap((unsigned long*)&_ptr, (unsigned long)ptrOld, (unsigned long)ptrNew);
|
||
|
#elif defined(_OPENTHREADS_ATOMIC_USE_SUN)
|