mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Fixed GCC compile error.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user