From ce6b10b99af722a4e653387d40019a8428d2a54f Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 27 Aug 2020 17:37:20 +0200 Subject: [PATCH] Fix clang-tidy warnings This comes from PX4 CI. --- matrix/helper_functions.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix/helper_functions.hpp b/matrix/helper_functions.hpp index 9c85fcda82..37d2191f94 100644 --- a/matrix/helper_functions.hpp +++ b/matrix/helper_functions.hpp @@ -93,8 +93,9 @@ template Integer wrap(Integer x, Integer low, Integer high) { const auto range = high - low; - if (x < low) + if (x < low) { x += range * ((low - x) / range + 1); + } return low + (x - low) % range; }