bkaradzic пре 11 година
родитељ
комит
d20b8d9a19
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      include/bx/cpu.h

+ 1 - 1
include/bx/cpu.h

@@ -103,7 +103,7 @@ namespace bx
 #if BX_COMPILER_MSVC
 		return _InterlockedCompareExchange( (volatile LONG*)(_ptr), _new, _old);
 #else
-		return __sync_val_compare_and_swap(_ptr, _old, _new);
+		return __sync_val_compare_and_swap( (volatile int32_t*)_ptr, _old, _new);
 #endif // BX_COMPILER
 	}