diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-10-27 06:58:54 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-10-27 06:58:54 +0100 |
commit | c65bf0c5c25c554667aebce9f2d3183cd3af4357 (patch) | |
tree | a2b1debcb1687faed8c0d32622119f17531a8bb6 /tracker-steamvr/steamvr.cpp | |
parent | aaed56e93ddff39159f2d0b08d857a4a01a8184a (diff) |
fix clang warnings
Diffstat (limited to 'tracker-steamvr/steamvr.cpp')
-rw-r--r-- | tracker-steamvr/steamvr.cpp | 6 |
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); |