From 5df10a07794d01f4377f07bd1cf4f12196ab37ae Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Fri, 28 Jun 2024 16:48:25 +0000 Subject: [PATCH] style Signed-off-by: Ian Chen --- test/integration/gpu_rays.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/gpu_rays.cc b/test/integration/gpu_rays.cc index 100d14ede..a5f18b826 100644 --- a/test/integration/gpu_rays.cc +++ b/test/integration/gpu_rays.cc @@ -754,7 +754,7 @@ TEST_F(GpuRaysTest, GZ_UTILS_TEST_DISABLED_ON_WIN32(SingleRay)) int mid = 0; double unitBoxSize = 1.0; double expectedRangeAtMidPointBox = testPose.Pos().Z() - - (abs(box01Pose.Pos().Z()) + unitBoxSize/2); + (std::abs(box01Pose.Pos().Z()) + unitBoxSize / 2); // ray should detect box EXPECT_NEAR(scan[mid], expectedRangeAtMidPointBox, LASER_TOL); @@ -764,7 +764,7 @@ TEST_F(GpuRaysTest, GZ_UTILS_TEST_DISABLED_ON_WIN32(SingleRay)) visualBox1->SetWorldPosition(newBox01Pose.Pos()); gpuRays->Update(); expectedRangeAtMidPointBox = testPose.Pos().Z() - - (abs(newBox01Pose.Pos().Z()) + unitBoxSize/2); + (std::abs(newBox01Pose.Pos().Z()) + unitBoxSize / 2); EXPECT_NEAR(scan[mid], expectedRangeAtMidPointBox, LASER_TOL); c.reset();