Fixed GCC compile error.

This commit is contained in:
bkaradzic
2014-08-11 16:04:15 -07:00
parent eb3258aa86
commit d20b8d9a19

View File

@@ -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
}