Fix typo in atomic_compare_exchange_weak()

This commit is contained in:
Sergey Sushilin 2023-09-09 23:28:45 +03:00
parent 31206a5bb8
commit 7f39b4f573

View file

@ -134,7 +134,7 @@ typedef struct {
__atomic_compare_exchange(ptr, expected, &tmp, 1, success, failure); \
})
#define atomic_compare_exchange_weak(object, expected, desired) \
atomic_compare_exchange_weak_explicit (PTR, VAL, DES, \
atomic_compare_exchange_weak_explicit (object, expected, desired, \
__ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
#define atomic_fetch_add(object, operand) \