From 7082a4dc24c50192014cdfb011e1bd61429fbbaf Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 31 Mar 2018 10:04:41 +0200 Subject: [PATCH] Fix wrong initialization of ATOMIC_VAR_INIT for the emulation layer (wrong since the simplication of the atomic structure). --- m-atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-atomic.h b/m-atomic.h index 556b36fa..27d43e2c 100644 --- a/m-atomic.h +++ b/m-atomic.h @@ -201,7 +201,7 @@ static inline long long atomic_fetch_unlock (m_mutex_t *lock, long long val) #define atomic_fetch_and(ptr, val) atomic_fetch_op(ptr, val, &=) #define atomic_exchange(ptr, val) atomic_fetch_op(ptr, val, =) -#define ATOMIC_VAR_INIT(val) { val, 0, 0, 0, M_MUTEXI_INIT_VALUE } +#define ATOMIC_VAR_INIT(val) { val, 0, 0, M_MUTEXI_INIT_VALUE } #define atomic_init(ptr, val) \ (m_mutex_init((ptr)->__lock), (ptr)->__val = val, (ptr)->__zero = 0)