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

Fix a2e0eaa1 on legacy platforms

parent 009a1337
...@@ -159,7 +159,7 @@ void *vlc_hold (gc_object_t * p_gc) ...@@ -159,7 +159,7 @@ void *vlc_hold (gc_object_t * p_gc)
refs = OSAtomicIncrement32Barrier((int*)&p_gc->refs); refs = OSAtomicIncrement32Barrier((int*)&p_gc->refs);
#else #else
vlc_spin_lock (&p_gc->spin); vlc_spin_lock (&p_gc->spin);
refs = p_gc->refs++; refs = ++p_gc->refs;
vlc_spin_unlock (&p_gc->spin); vlc_spin_unlock (&p_gc->spin);
#endif #endif
assert (refs != 1); /* there had to be a reference already */ assert (refs != 1); /* there had to be a reference already */
...@@ -186,7 +186,7 @@ void vlc_release (gc_object_t *p_gc) ...@@ -186,7 +186,7 @@ void vlc_release (gc_object_t *p_gc)
refs = OSAtomicDecrement32Barrier((int*)&p_gc->refs); refs = OSAtomicDecrement32Barrier((int*)&p_gc->refs);
#else #else
vlc_spin_lock (&p_gc->spin); vlc_spin_lock (&p_gc->spin);
refs = p_gc->refs--; refs = --p_gc->refs;
vlc_spin_unlock (&p_gc->spin); vlc_spin_unlock (&p_gc->spin);
#endif #endif
......
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