From c56df948eeb6fc0fd7e7069e8a4f0c68eef1fc3c Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 24 Apr 2017 10:58:21 -0400 Subject: [PATCH] mathlib expo template style --- src/lib/mathlib/math/Expo.hpp | 4 ++-- src/lib/mathlib/math/Limits.hpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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