summaryrefslogtreecommitdiffhomepage
path: root/tracker-steamvr/steamvr.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-10-27 06:58:54 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-10-27 06:58:54 +0100
commitc65bf0c5c25c554667aebce9f2d3183cd3af4357 (patch)
treea2b1debcb1687faed8c0d32622119f17531a8bb6 /tracker-steamvr/steamvr.cpp
parentaaed56e93ddff39159f2d0b08d857a4a01a8184a (diff)
fix clang warnings
Diffstat (limited to 'tracker-steamvr/steamvr.cpp')
-rw-r--r--tracker-steamvr/steamvr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tracker-steamvr/steamvr.cpp b/tracker-steamvr/steamvr.cpp
index 9a845d55..3bcfcc25 100644
--- a/tracker-steamvr/steamvr.cpp
+++ b/tracker-steamvr/steamvr.cpp
@@ -233,9 +233,9 @@ void steamvr::data(double* data)
const auto& result = pose.mDeviceToAbsoluteTracking;
- data[TX] = -result.m[0][3] * c;
- data[TY] = result.m[1][3] * c;
- data[TZ] = result.m[2][3] * c;
+ data[TX] = (double)(-result.m[0][3] * c);
+ data[TY] = (double)(result.m[1][3] * c);
+ data[TZ] = (double)(result.m[2][3] * c);
matrix_to_euler(data[Yaw], data[Pitch], data[Roll], result);