summaryrefslogtreecommitdiffhomepage
path: root/compat/math.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-19 06:27:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-19 06:27:46 +0100
commit8f7b50e6d2030e44249a3bf1c11eae0cfd30d77b (patch)
tree5b719c3f6a318727d846989382fb00ec46a16be7 /compat/math.hpp
parent36b2d71c26baefa4318383326e0fec61d5aa3616 (diff)
compat/math: fix prototype
Diffstat (limited to 'compat/math.hpp')
-rw-r--r--compat/math.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/math.hpp b/compat/math.hpp
index b8cba8f2..34428cbd 100644
--- a/compat/math.hpp
+++ b/compat/math.hpp
@@ -66,7 +66,8 @@ inline auto uround(t val) -> std::enable_if_t<std::is_floating_point_v<remove_cv
}
template <typename t>
-static force_inline constexpr int signum(const t& x)
+force_inline
+constexpr int signum(const t& x)
{
return x < t{0} ? -1 : 1;
}