diff --git a/Source/Engine/Platform/Win32/Win32Platform.h b/Source/Engine/Platform/Win32/Win32Platform.h index 9eb1c4c1e..5d020a0fd 100644 --- a/Source/Engine/Platform/Win32/Win32Platform.h +++ b/Source/Engine/Platform/Win32/Win32Platform.h @@ -69,7 +69,7 @@ public: } static int64 AtomicRead(int64 const volatile* dst) { - return _InterlockedCompareExchange64(dst, 0, 0); + return _InterlockedCompareExchange64((int64 volatile*)dst, 0, 0); } static void AtomicStore(int32 volatile* dst, int32 value) {