Commit 2e186c72 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove untenable const qualifiers from vlc_atomic_get()

parent ddf9e6da
......@@ -215,7 +215,7 @@ typedef union
# define VLC_ATOMIC_INIT(val) { (val) }
/* All functions return the atom value _after_ the operation. */
static inline uintptr_t vlc_atomic_get(const vlc_atomic_t *atom)
static inline uintptr_t vlc_atomic_get(vlc_atomic_t *atom)
{
return atomic_load(&atom->u);
}
......@@ -258,7 +258,7 @@ static inline uintptr_t vlc_atomic_compare_swap(vlc_atomic_t *atom,
}
/** Helper to retrieve a single precision from an atom. */
static inline float vlc_atomic_getf(const vlc_atomic_t *atom)
static inline float vlc_atomic_getf(vlc_atomic_t *atom)
{
union { float f; uintptr_t i; } u;
u.i = vlc_atomic_get(atom);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment