diff options
-rw-r--r-- | proto-ft/ftnoir_protocol_ft.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 4f41c21c..c6259593 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -43,7 +43,7 @@ template<typename t> static void store(t volatile& place, t value) { static_assert(sizeof(t) == 4u); - (void)InterlockedExchange((LONG volatile*) &place, value); + (void)InterlockedExchange((LONG volatile*) &place, (LONG)value); } static std::int32_t load(std::int32_t volatile& place) @@ -107,7 +107,7 @@ void freetrack::pose(const double* headpose, const double* raw) } store(ft->GameID2, id); - store((std::uint32_t volatile &)data->DataID, 0u); + store(data->DataID, 0u); intGameID = id; |