From 6ee550ecbad85c6bce796d04b3238a4c0a491205 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 30 Jun 2017 11:48:25 +0200 Subject: compat: slightly reformat --- compat/simple-mat.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/simple-mat.hpp b/compat/simple-mat.hpp index 11bb191f..ca49ea5a 100644 --- a/compat/simple-mat.hpp +++ b/compat/simple-mat.hpp @@ -119,7 +119,7 @@ public: const num val = dot(*this); - if (std::fabs(val) < 1e-4) + if (std::fabs(val) < num(1e-4)) return num(0); else return std::sqrt(val); @@ -132,7 +132,7 @@ public: static_assert(P == h_ && Q == w_, ""); num ret = 0; - constexpr int len = vector_len::value; + static constexpr int len = vector_len::value; for (int i = 0; i < len; i++) ret += operator()(i) * p2(i); return ret; -- cgit v1.2.3