mirror of https://code.videolan.org/videolan/vlc
Fix vlc_atomic_compare_swap() return value
(Though in practice, the only call site ignores the return value.)
This commit is contained in:
parent
2e186c72e0
commit
d22cf31fe1
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue