mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
util: Cast to match the MSVC intrinsics.
The cast is not optional in C++.
This commit is contained in:
parent
e0da333d6b
commit
7bd949734c
1 changed files with 4 additions and 4 deletions
|
|
@ -233,25 +233,25 @@ extern "C" {
|
|||
static INLINE boolean
|
||||
p_atomic_dec_zero(int32_t *v)
|
||||
{
|
||||
return _InterlockedDecrement(v) == 0;
|
||||
return _InterlockedDecrement((long *)v) == 0;
|
||||
}
|
||||
|
||||
static INLINE void
|
||||
p_atomic_inc(int32_t *v)
|
||||
{
|
||||
_InterlockedIncrement(v);
|
||||
_InterlockedIncrement((long *)v);
|
||||
}
|
||||
|
||||
static INLINE void
|
||||
p_atomic_dec(int32_t *v)
|
||||
{
|
||||
_InterlockedDecrement(v);
|
||||
_InterlockedDecrement((long *)v);
|
||||
}
|
||||
|
||||
static INLINE int32_t
|
||||
p_atomic_cmpxchg(int32_t *v, int32_t old, int32_t _new)
|
||||
{
|
||||
return _InterlockedCompareExchange(v, _new, old);
|
||||
return _InterlockedCompareExchange((long *)v, _new, old);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue