From 9ba71cf508f807bf734854bc6958c022ada5d903 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 1 Dec 2009 08:23:11 -0700 Subject: [PATCH] fix Darwin build --- src/x86.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x86.h b/src/x86.h index 2ca377c86c..4ae08f6859 100644 --- a/src/x86.h +++ b/src/x86.h @@ -233,9 +233,9 @@ inline bool atomicCompareAndSwap(uintptr_t* p, uintptr_t old, uintptr_t new_) { #ifdef ARCH_x86_32 - return atomicCompareAndSwap32(p, old, new_); + return atomicCompareAndSwap32(reinterpret_cast(p), old, new_); #elif defined ARCH_x86_64 - return atomicCompareAndSwap64(p, old, new_); + return atomicCompareAndSwap64(reinterpret_cast(p), old, new_); #endif // ARCH_x86_64 } #endif // USE_ATOMIC_OPERATIONS