summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-30 11:48:25 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-30 11:48:46 +0200
commit6ee550ecbad85c6bce796d04b3238a4c0a491205 (patch)
tree93db52096cd6ddc3ce6b9832d0ab068b83f4ae43 /compat
parente59a5e62c38aad8ec66df1b05cc13d213e76e865 (diff)
compat: slightly reformat
Diffstat (limited to 'compat')
-rw-r--r--compat/simple-mat.hpp4
1 files 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<R, S>::value;
+ static constexpr int len = vector_len<R, S>::value;
for (int i = 0; i < len; i++)
ret += operator()(i) * p2(i);
return ret;