Fix warning "incompatible pointer types passing 'int *' to parameter of type 'volatile long *' [-Wincompatible-pointer-types]", in clang-win

This commit is contained in:
Ion Gaztañaga
2024-08-22 00:46:40 +02:00
parent 2d1348930a
commit 74dfab45fc

View File

@ -1853,8 +1853,8 @@ static FORCEINLINE void x86_clear_lock(int* sl) {
#define CLEAR_LOCK(sl) x86_clear_lock(sl)
#else /* Win32 MSC */
#define CAS_LOCK(sl) interlockedexchange(sl, (LONG)1)
#define CLEAR_LOCK(sl) interlockedexchange (sl, (LONG)0)
#define CAS_LOCK(sl) interlockedexchange((volatile long*)sl, (LONG)1)
#define CLEAR_LOCK(sl) interlockedexchange ((volatile long*)sl, (LONG)0)
#endif /* ... gcc spins locks ... */