From 2f4307202e3bde0c7cc176a6850105ee54f468d8 Mon Sep 17 00:00:00 2001 From: Eran Date: Tue, 12 May 2020 23:29:48 +0300 Subject: [PATCH] another try at fixing linux errors --- include/librealsense2/rsutil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/librealsense2/rsutil.h b/include/librealsense2/rsutil.h index 9a739cee33..35260e44a0 100644 --- a/include/librealsense2/rsutil.h +++ b/include/librealsense2/rsutil.h @@ -39,8 +39,8 @@ static void rs2_project_point_to_pixel(float pixel[2], const struct rs2_intrinsi float r2 = x * x + y * y; float f = 1 + intrin->coeffs[0] * r2 + intrin->coeffs[1] * r2*r2 + intrin->coeffs[4] * r2*r2*r2; - auto xf = x * f; - auto yf = y * f; + float xf = x * f; + float yf = y * f; float dx = xf + 2 * intrin->coeffs[2] * x*y + intrin->coeffs[3] * (r2 + 2 * x*x); float dy = yf + 2 * intrin->coeffs[3] * x*y + intrin->coeffs[2] * (r2 + 2 * y*y);