diff --git a/components/math/include/fast_math.hpp b/components/math/include/fast_math.hpp index b4d3f2569..005cb487d 100644 --- a/components/math/include/fast_math.hpp +++ b/components/math/include/fast_math.hpp @@ -5,8 +5,8 @@ #include #include #include +#include #include -#include namespace espp { /** @@ -102,7 +102,7 @@ template int sgn(T x) { return (T(0) < x) - (x < T(0)); } */ [[maybe_unused]] static float piecewise_linear(std::span> points, float x) { - if (points.size() == 0) { + if (points.empty()) { return 0.0f; } if (x <= points.front().first) {