From 6e214631402b2088d11e2589d9ac9f83e27cc48d Mon Sep 17 00:00:00 2001 From: neilyoung Date: Mon, 12 Oct 2020 10:39:49 +0200 Subject: [PATCH] Update rsutil.h In order to remove a warning generated by Rust bindgen --- include/librealsense2/rsutil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/librealsense2/rsutil.h b/include/librealsense2/rsutil.h index 35260e44a0..8c61bf57d6 100644 --- a/include/librealsense2/rsutil.h +++ b/include/librealsense2/rsutil.h @@ -109,7 +109,7 @@ static void rs2_deproject_pixel_to_point(float point[3], const struct rs2_intrin for (int i = 0; i < 4; i++) { float f = theta*(1 + theta2*(intrin->coeffs[0] + theta2*(intrin->coeffs[1] + theta2*(intrin->coeffs[2] + theta2*intrin->coeffs[3])))) - rd; - if (abs(f) < FLT_EPSILON) + if (fabs(f) < FLT_EPSILON) { break; }