From 9d57e158f9c06039ec921847d8c0faf90d69f73a Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Mon, 6 May 2019 11:57:33 -0500 Subject: [PATCH] aux/util: fix truncation warning --- src/xrt/auxiliary/util/u_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/auxiliary/util/u_device.c b/src/xrt/auxiliary/util/u_device.c index d28fa35d8..c3a090add 100644 --- a/src/xrt/auxiliary/util/u_device.c +++ b/src/xrt/auxiliary/util/u_device.c @@ -148,8 +148,8 @@ u_device_setup_split_side_by_side(struct xrt_device* xdev, float h_meters = info->display.h_meters; float lens_center_x_meters[2] = { - w_meters - info->lens_horizontal_separation_meters / 2.0, - info->lens_horizontal_separation_meters / 2.0, + w_meters - info->lens_horizontal_separation_meters / 2.0f, + info->lens_horizontal_separation_meters / 2.0f, }; float lens_center_y_meters[2] = {