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) /**