[*] Amend casts in auAtomic.hpp

This commit is contained in:
Reece Wilson 2023-03-11 14:24:48 +00:00
parent 55b0dafa56
commit 389fc41351

View File

@ -354,40 +354,40 @@ template <class T>
auline
T AuAtomicSet(volatile T *in, AuUInt8 offset)
{
return AuAtomicUtils<T>::Set(reinterpret_cast<T *>(in), offset);
return AuAtomicUtils<T>::Set((T *)(in), offset);
}
template <class T>
auline
T AuAtomicOr(volatile T *in, T value)
{
return AuAtomicUtils<T>::Or(reinterpret_cast<T *>(in), value);
return AuAtomicUtils<T>::Or((T *)(in), value);
}
template <class T>
auline
T AuAtomicAdd(volatile T *in, T addend)
{
return AuAtomicUtils<T>::Add(reinterpret_cast<T *>(in), addend);
return AuAtomicUtils<T>::Add((T *)(in), addend);
}
template <class T>
auline
T AuAtomicSub(volatile T *in, T minuend)
{
return AuAtomicUtils<T>::Sub(reinterpret_cast<T *>(in), minuend);
return AuAtomicUtils<T>::Sub((T *)(in), minuend);
}
template <class T>
auline
T AuAtomicCompareExchange(volatile T *in, T replace, T compare)
{
return AuAtomicUtils<T>::CompareExchange(reinterpret_cast<T *>(in), replace, compare);
return AuAtomicUtils<T>::CompareExchange((T *)(in), replace, compare);
}
template <class T>
auline
bool AuAtomicTestAndSet(volatile T *in, AuUInt8 offset)
{
return AuAtomicUtils<T>::TestAndSet(reinterpret_cast<T *>(in), offset);
return AuAtomicUtils<T>::TestAndSet((T *)(in), offset);
}