diff options
author | Chris Robinson <[email protected]> | 2014-03-09 03:49:40 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-09 03:49:40 -0700 |
commit | 308d87b12aa2b8018be9023c89ad09fcf01d99d1 (patch) | |
tree | 18db474b86f611e38f4b2a70d34186c3f04ae23f /Alc/helpers.c | |
parent | 372f3178f8cf1d297d88a3c39a5e2b3c78903e86 (diff) |
Return the original value from CompExchange*
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r-- | Alc/helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c index e3f51b2c..66ca58a9 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -93,8 +93,8 @@ extern inline RefCount IncrementRef(volatile RefCount *ptr); extern inline RefCount DecrementRef(volatile RefCount *ptr); extern inline int ExchangeInt(volatile int *ptr, int newval); extern inline void *ExchangePtr(XchgPtr *ptr, void *newval); -extern inline ALboolean CompExchangeInt(volatile int *ptr, int oldval, int newval); -extern inline ALboolean CompExchangePtr(XchgPtr *ptr, void *oldval, void *newval); +extern inline int CompExchangeInt(volatile int *ptr, int oldval, int newval); +extern inline void *CompExchangePtr(XchgPtr *ptr, void *oldval, void *newval); extern inline void LockUIntMapRead(UIntMap *map); extern inline void UnlockUIntMapRead(UIntMap *map); |