fix UC_ATOMIC_DEC

This commit is contained in:
Nils O. Selåsdal
2013-06-17 20:32:15 +02:00
parent 7d4f1f16c2
commit b219136d6e
+1 -1
View File
@@ -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