summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
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;