fix UC_ATOMIC_DEC
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
* Atomically decrement *ptr
|
* Atomically decrement *ptr
|
||||||
* @return *ptr before the decrement
|
* @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
|
* Atomically increment *ptr
|
||||||
|
|||||||
Reference in New Issue
Block a user