From 67a4cb7d8a4461fe7d5206189fd4e9539beb20b7 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Tue, 3 Apr 2018 18:16:17 +0200 Subject: Fix various clang-tidy reported performance-type-promotion-in-math-fn --- src/unittest/test_utilities.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/unittest') diff --git a/src/unittest/test_utilities.cpp b/src/unittest/test_utilities.cpp index 95c34a9c7..315cbf0fc 100644 --- a/src/unittest/test_utilities.cpp +++ b/src/unittest/test_utilities.cpp @@ -119,7 +119,8 @@ void TestUtilities::testAngleWrapAround() UASSERT(std::fabs(modulo360f(f) - fmodf(f, 360)) < 0.001); UASSERT(std::fabs(wrapDegrees_180(f) - ref_WrapDegrees180(f)) < 0.001); UASSERT(std::fabs(wrapDegrees_0_360(f) - ref_WrapDegrees_0_360(f)) < 0.001); - UASSERT(wrapDegrees_0_360(fabs(wrapDegrees_180(f) - wrapDegrees_0_360(f))) < 0.001); + UASSERT(wrapDegrees_0_360( + std::fabs(wrapDegrees_180(f) - wrapDegrees_0_360(f))) < 0.001); } } -- cgit v1.2.3