From 5fbd8c6b9fc3bba5549811902b5241409250ba1f Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Tue, 3 Oct 2023 20:54:02 +0000 Subject: [PATCH] fix float comparison warning Signed-off-by: Ian Chen --- src/Camera_TEST.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Camera_TEST.cc b/src/Camera_TEST.cc index 262f41a86..99d826d4b 100644 --- a/src/Camera_TEST.cc +++ b/src/Camera_TEST.cc @@ -412,12 +412,12 @@ void CameraTest::IntrinsicMatrix(const std::string &_renderEngine) EXPECT_DOUBLE_EQ(cameraIntrinsics(1, 2), 120); // Verify rest of the intrinsics - EXPECT_EQ(cameraIntrinsics(0, 1), 0); - EXPECT_EQ(cameraIntrinsics(1, 0), 0); - EXPECT_EQ(cameraIntrinsics(0, 1), 0); - EXPECT_EQ(cameraIntrinsics(2, 0), 0); - EXPECT_EQ(cameraIntrinsics(2, 1), 0); - EXPECT_EQ(cameraIntrinsics(2, 2), 1); + EXPECT_DOUBLE_EQ(cameraIntrinsics(0, 1), 0); + EXPECT_DOUBLE_EQ(cameraIntrinsics(1, 0), 0); + EXPECT_DOUBLE_EQ(cameraIntrinsics(0, 1), 0); + EXPECT_DOUBLE_EQ(cameraIntrinsics(2, 0), 0); + EXPECT_DOUBLE_EQ(cameraIntrinsics(2, 1), 0); + EXPECT_DOUBLE_EQ(cameraIntrinsics(2, 2), 1); // Verify that changing camera size changes intrinsics height = 1000;