From 7942907878dd4c263ba7431067c33ce6b5d53ceb Mon Sep 17 00:00:00 2001 From: James Almer Date: Sun, 2 Apr 2017 00:57:17 -0300 Subject: compat/atomics: fix atomic_fetch_xor --- compat/atomics/suncc/stdatomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compat/atomics/suncc') diff --git a/compat/atomics/suncc/stdatomic.h b/compat/atomics/suncc/stdatomic.h index 119c2ba3c9..4a864a4ae9 100644 --- a/compat/atomics/suncc/stdatomic.h +++ b/compat/atomics/suncc/stdatomic.h @@ -166,7 +166,7 @@ static inline intptr_t atomic_fetch_and(intptr_t *object, intptr_t operand) atomic_fetch_or(object, operand) #define atomic_fetch_xor_explicit(object, operand, order) \ - atomic_fetch_sub(object, operand) + atomic_fetch_xor(object, operand) #define atomic_fetch_and_explicit(object, operand, order) \ atomic_fetch_and(object, operand) -- cgit v1.2.3