From 679b4b12e50e6463c3b3664b84381e0ec13297b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Fri, 19 Jul 2013 20:53:36 +0200 Subject: [PATCH] Fix UC_ATOMIC_ADD --- include/ucore/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ucore/atomic.h b/include/ucore/atomic.h index 5311352..a3b4a67 100644 --- a/include/ucore/atomic.h +++ b/include/ucore/atomic.h @@ -30,7 +30,7 @@ * Atomically increment *ptr * @return *ptr before the increment */ -#define UC_ATOMIC_INC(ptr) UC_ATOMIC_SUB((ptr), 1) +#define UC_ATOMIC_INC(ptr) UC_ATOMIC_ADD((ptr), 1) /**