diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-03 12:11:34 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-03 12:11:34 +0200 |
commit | b11b87fd5f48dbcf783e298b9e2dd9a4dde9838f (patch) | |
tree | 448bdfea129e79bf9c8ae5600f611dc3723b895b | |
parent | 770267db5d15769300eabaadfe93976e8ca814c9 (diff) |
simple-mat: pass -Wall -Wextra -pedantic
-rw-r--r-- | opentrack/simple-mat.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opentrack/simple-mat.hpp b/opentrack/simple-mat.hpp index 17f19c45..5ee9029c 100644 --- a/opentrack/simple-mat.hpp +++ b/opentrack/simple-mat.hpp @@ -18,7 +18,7 @@ namespace { template<int i1, int j1, int i2, int j2> struct is_vector_pair { - enum { value = i1 == i2 && j1 == 1 && j2 == 1 || j1 == j2 && i1 == 1 && i2 == 1 }; + enum { value = (i1 == i2 && j1 == 1 && j2 == 1) || (j1 == j2 && i1 == 1 && i2 == 1) }; }; template<int i, int j> struct vector_len @@ -28,7 +28,7 @@ namespace { template<int a, int b, int c, int d> struct is_dim3 { - enum { value = a == 1 && c == 1 && b == 3 && d == 3 || a == 3 && c == 3 && b == 1 && d == 1 }; + enum { value = (a == 1 && c == 1 && b == 3 && d == 3) || (a == 3 && c == 3 && b == 1 && d == 1) }; enum { P = a == 1 ? 1 : 3 }; enum { Q = a == 1 ? 3 : 1 }; }; |