diff options
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r-- | include/my_pthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h index f108bc02801..10556b49c41 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -692,7 +692,7 @@ static inline bool thread_safe_dec_and_test(ulong &V, pthread_mutex_t *L) { ulong res; pthread_mutex_lock(L); - res=V--; + res=--V; pthread_mutex_unlock(L); return res==0; } |