Change the return type of the fallback implementation of the
atomic_compare_exchange_* macros in stdatomic.h to _Bool.
This commit is contained in:
parent
677ee4943a
commit
ce158c1c41
@ -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) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user