Skip to content

Commit

Permalink
mathlib expo template style
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed Apr 24, 2017
1 parent 96f3f74 commit 853c820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/mathlib/math/Expo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
#pragma once

#include <platforms/px4_defines.h>
#include <stdint.h>

namespace math
{

// Type-safe signum function
template<typename T> int sign(T val)
template<typename T>
int sign(T val)
{
return (T(0) < val) - (val < T(0));
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/mathlib/math/Limits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#pragma once

#include <platforms/px4_defines.h>
#include <stdint.h>

//this should be defined in stdint.h, but seems to be missing in the ARM toolchain (5.2.0)
#ifndef UINT64_C
Expand Down

0 comments on commit 853c820

Please sign in to comment.