Fix vlc_atomic_compare_swap() return value

(Though in practice, the only call site ignores the return value.)
This commit is contained in:
Rémi Denis-Courmont 2012-08-23 20:44:01 +03:00
parent 2e186c72e0
commit d22cf31fe1
1 changed files with 2 additions and 1 deletions

View File

@ -254,7 +254,8 @@ static inline uintptr_t vlc_atomic_swap(vlc_atomic_t *atom, uintptr_t v)
static inline uintptr_t vlc_atomic_compare_swap(vlc_atomic_t *atom,
uintptr_t u, uintptr_t v)
{
return atomic_compare_exchange_strong(&atom->u, &u, v);
atomic_compare_exchange_strong(&atom->u, &u, v);
return u;
}
/** Helper to retrieve a single precision from an atom. */