summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-28 17:30:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-28 17:32:38 +0200
commit29bf7f94eab413e25914c3939d7ff19ef0cd4c48 (patch)
tree25ed9eba28b27e921d1fccd68934546aac892cad
parentb2ceb8fd3f3a6eb991e30844d567f9dade87a92d (diff)
freetrackclient: mark volatile
-rw-r--r--freetrackclient/fttypes.h6
-rw-r--r--proto-ft/ftnoir_protocol_ft.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/freetrackclient/fttypes.h b/freetrackclient/fttypes.h
index 033d183e..a3abea54 100644
--- a/freetrackclient/fttypes.h
+++ b/freetrackclient/fttypes.h
@@ -26,7 +26,7 @@
/* only 6 headpose floats and the data id are filled -sh */
typedef struct FTData__ {
- int32_t DataID;
+ uint32_t DataID;
int32_t CamWidth;
int32_t CamHeight;
/* virtual pose */
@@ -52,7 +52,7 @@ typedef struct FTData__ {
float Y3;
float X4;
float Y4;
-} FTData;
+} volatile FTData;
/* we add some shit at the end for other legacy proto, sadly */
@@ -65,4 +65,4 @@ typedef struct FTHeap__ {
int32_t table_ints[2];
};
int32_t GameID2;
-} FTHeap;
+} volatile FTHeap;
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp
index ce11d7d3..1e704c72 100644
--- a/proto-ft/ftnoir_protocol_ft.cpp
+++ b/proto-ft/ftnoir_protocol_ft.cpp
@@ -125,7 +125,7 @@ void freetrack::pose(const double* headpose)
}
store(ft->GameID2, id);
- store(data->DataID, 0);
+ store((std::int32_t volatile&) data->DataID, 0);
intGameID = id;