Change the return type of the fallback implementation of the

atomic_compare_exchange_* macros in stdatomic.h to _Bool.
This commit is contained in:
Tijl Coosemans 2013-08-18 19:37:35 +00:00
parent 677ee4943a
commit ce158c1c41

View File

@ -288,8 +288,8 @@ typedef _Atomic(__uintmax_t) atomic_uintmax_t;
__typeof__(expected) __ep = (expected); \
__typeof__(*__ep) __e = *__ep; \
(void)(success); (void)(failure); \
(*__ep = __sync_val_compare_and_swap(&(object)->__val, \
__e, desired)) == __e; \
(_Bool)((*__ep = __sync_val_compare_and_swap(&(object)->__val, \
__e, desired)) == __e); \
})
#define atomic_compare_exchange_weak_explicit(object, expected, \
desired, success, failure) \