about summary refs log tree commit diff
path: root/nptl/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/atomic.h')
-rw-r--r--nptl/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/atomic.h b/nptl/atomic.h
index 4279235a71..813fb80a03 100644
--- a/nptl/atomic.h
+++ b/nptl/atomic.h
@@ -60,7 +60,7 @@
      while (atomic_compare_and_exchange_acq (__memp, __oldval + __value,      \
 					     __oldval));		      \
 									      \
-     __oldval; })
+     __oldval + __value; })
 #endif