mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
fix Darwin build
This commit is contained in:
parent
0bdf1d8e82
commit
9ba71cf508
@ -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<uint32_t*>(p), old, new_);
|
||||
#elif defined ARCH_x86_64
|
||||
return atomicCompareAndSwap64(p, old, new_);
|
||||
return atomicCompareAndSwap64(reinterpret_cast<uint64_t*>(p), old, new_);
|
||||
#endif // ARCH_x86_64
|
||||
}
|
||||
#endif // USE_ATOMIC_OPERATIONS
|
||||
|
Loading…
Reference in New Issue
Block a user