- if (ref) eDebug("OBJECT_DEBUG FATAL: %p has %d references!", this, ref); else eDebug("OBJECT_DEBUG refcount ok! (%p)", this);
+ if (count) eDebug("OBJECT_DEBUG FATAL: %p has %d references!", this, ref); else eDebug("OBJECT_DEBUG refcount ok! (%p)", this);
" sc %0, %1 # try to store, checking for atomicity \n" \
" .set mips0 \n" \
" beqz %0, 1b # if not atomic (0), try again \n" \
" sc %0, %1 # try to store, checking for atomicity \n" \
" .set mips0 \n" \
" beqz %0, 1b # if not atomic (0), try again \n" \
- : "=&r" (temp), "=m" ((int)ref) \
- : "r" (1), "r" (&((int)ref)), "m" ((int)ref) \
+ : "=&r" (temp), "=m" (ref.count) \
+ : "r" (1), "r" (&ref.count), "m" (ref.count) \
- : "=&r" (temp), "=m" ((int)ref) \
- : "r" (1), "r" (&((int)ref)), "m" ((int)ref) \
+ : "=&r" (temp), "=m" (ref.count) \
+ : "r" (1), "r" (&ref.count), "m" (ref.count) \