From b219136d6e8e471812ec902dc88fc4dd7ee9195b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Mon, 17 Jun 2013 20:32:15 +0200 Subject: [PATCH] fix UC_ATOMIC_DEC --- 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 c5bbe1d..1d7184d 100644 --- a/include/ucore/atomic.h +++ b/include/ucore/atomic.h @@ -20,7 +20,7 @@ * Atomically decrement *ptr * @return *ptr before the decrement */ -#define UC_ATOMIC_DEC(ptr) UC_ATOMIC_ADD((ptr), -1) +#define UC_ATOMIC_DEC(ptr) UC_ATOMIC_SUB((ptr), 1) /** * Atomically increment *ptr