Skip to content

Commit

Permalink
Update rsutil.h
Browse files Browse the repository at this point in the history
In order to remove a warning generated by Rust bindgen
  • Loading branch information
neilyoung authored Oct 12, 2020
1 parent d8f5d42 commit 6e21463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/librealsense2/rsutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6e21463

Please sign in to comment.