From c65bf0c5c25c554667aebce9f2d3183cd3af4357 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 27 Oct 2019 06:58:54 +0100 Subject: fix clang warnings --- tracker-steamvr/steamvr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tracker-steamvr/steamvr.cpp') 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); -- cgit v1.2.3