aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry/Transform.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-08-01 16:24:23 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-08-01 16:24:23 +0200
commit107bb308c376a5a4b7f11f2792396d2fa0d12904 (patch)
tree740774ba970ef80ea9a0e4dc877faedc1fad244a /Eigen/src/Geometry/Transform.h
parentc2ff44cbf3c58045a38120d28316a992c0cc0d57 (diff)
Fix various small issues detected by gcc
Diffstat (limited to 'Eigen/src/Geometry/Transform.h')
-rw-r--r--Eigen/src/Geometry/Transform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h
index a62548f12..bcf3e2723 100644
--- a/Eigen/src/Geometry/Transform.h
+++ b/Eigen/src/Geometry/Transform.h
@@ -375,7 +375,7 @@ public:
#endif
#ifdef EIGEN_TEST_EVALUATORS
- Index rows() const { return Mode==Projective ? m_matrix.cols() : m_matrix.cols()-1; }
+ Index rows() const { return int(Mode)==int(Projective) ? m_matrix.cols() : (m_matrix.cols()-1); }
Index cols() const { return m_matrix.cols(); }
#endif