Branimir Karadžić 10 years ago
parent
commit
bc26b1a92f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/bx/cpu.h

+ 1 - 1
include/bx/cpu.h

@@ -119,7 +119,7 @@ namespace bx
 		do
 		{
 			oldVal = newVal;
-			newVal = atomicCompareAndSwap(_ptr, oldVal, newVal);
+			newVal = atomicCompareAndSwap(_ptr, oldVal, newVal + _add);
 
 		} while (oldVal != newVal);