summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-09-22 17:07:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-09-22 17:07:44 +0200
commit5442c81c8020e1ca65dc6ced8fdb20f5a5e1e09b (patch)
tree84b9f0799d5610b6267cc2625ab9f8665e8d830e
parent4cb73ce5853d924c17381f3183226b8835172da7 (diff)
proto/ft: fix sign error
-rw-r--r--proto-ft/ftnoir_protocol_ft.cpp4
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;