diff --git a/src/lib/mathlib/math/Expo.hpp b/src/lib/mathlib/math/Expo.hpp index ff9f3d9a82..46ccb83a19 100644 --- a/src/lib/mathlib/math/Expo.hpp +++ b/src/lib/mathlib/math/Expo.hpp @@ -42,13 +42,13 @@ #pragma once #include -#include namespace math { // Type-safe signum function -template int sign(T val) +template +int sign(T val) { return (T(0) < val) - (val < T(0)); } diff --git a/src/lib/mathlib/math/Limits.hpp b/src/lib/mathlib/math/Limits.hpp index 5d3415d69e..743aa5241b 100644 --- a/src/lib/mathlib/math/Limits.hpp +++ b/src/lib/mathlib/math/Limits.hpp @@ -40,7 +40,6 @@ #pragma once #include -#include //this should be defined in stdint.h, but seems to be missing in the ARM toolchain (5.2.0) #ifndef UINT64_C