From 308d87b12aa2b8018be9023c89ad09fcf01d99d1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 9 Mar 2014 03:49:40 -0700 Subject: Return the original value from CompExchange* --- Alc/helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/helpers.c') 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); -- cgit v1.2.3