From 8d863da0e6aa255577bb5085618985de60034a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 8 Aug 2014 22:56:29 -0700 Subject: [PATCH] Cleanup. --- include/bx/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bx/cpu.h b/include/bx/cpu.h index d5ef1d3..4c16237 100644 --- a/include/bx/cpu.h +++ b/include/bx/cpu.h @@ -141,7 +141,7 @@ namespace bx do { oldVal = newVal; - newVal = atomicCompareAndSwap(_ptr, oldVal, newVal <= _test ? _test : newVal+1); + newVal = atomicCompareAndSwap(_ptr, oldVal, newVal <= _test ? _test : newVal-1); } while (oldVal != newVal);