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