diff options
author | José Fonseca <[email protected]> | 2010-02-03 22:16:39 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-02-03 22:16:39 +0000 |
commit | 7bd949734c96a0af49cb0b89230dc82799c593b7 (patch) | |
tree | 884e442532728c3548092f0168b4510e94223196 /src/gallium/auxiliary/util | |
parent | e0da333d6b5027609579110b3df8d5ad2127307a (diff) |
util: Cast to match the MSVC intrinsics.
The cast is not optional in C++.
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_atomic.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_atomic.h b/src/gallium/auxiliary/util/u_atomic.h index e30280a1e10..540112f7f3d 100644 --- a/src/gallium/auxiliary/util/u_atomic.h +++ b/src/gallium/auxiliary/util/u_atomic.h @@ -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 |