diff --git a/include/OpenThreads/Atomic b/include/OpenThreads/Atomic index 8b8ac4de3..ba6723354 100644 --- a/include/OpenThreads/Atomic +++ b/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)