From 934374374321d67e6e0f8ed4909f34544d437ce0 Mon Sep 17 00:00:00 2001 From: leitner Date: Mon, 9 Sep 2013 18:51:24 +0000 Subject: [PATCH] fix compile error --- CAS.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CAS.h b/CAS.h index 27b3219..1308050 100644 --- a/CAS.h +++ b/CAS.h @@ -53,7 +53,7 @@ static inline size_t atomic_add_return(size_t* x,size_t val) { /* *x += val; */ static inline void atomic_add(size_t* x,size_t val) { #ifdef USE_BUILTINS - return __sync_add_and_fetch(x,val); + __sync_add_and_fetch(x,val); #elif defined(__i386__) asm volatile ("lock; addl %1, %0" : "+m" (*x) : "ir" (val) ); #elif defined(__x86_64__)