From 2bdd32338757e806df0bb208030e8bc5fc249c78 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 15 Oct 2010 09:14:35 +0000 Subject: [PATCH] removed harmless warnings --- vcg/math/deprecated_matrix.h | 2 +- vcg/math/deprecated_matrix44.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/vcg/math/deprecated_matrix.h b/vcg/math/deprecated_matrix.h index e4313ade..4480fe40 100644 --- a/vcg/math/deprecated_matrix.h +++ b/vcg/math/deprecated_matrix.h @@ -299,7 +299,7 @@ namespace vcg{ */ inline const TYPE* operator[](const unsigned int i) const { - assert(i>=0 && i<_rows); + assert(i<_rows); return _data + i*_columns; }; diff --git a/vcg/math/deprecated_matrix44.h b/vcg/math/deprecated_matrix44.h index 45f70f7a..a077ed71 100644 --- a/vcg/math/deprecated_matrix44.h +++ b/vcg/math/deprecated_matrix44.h @@ -578,11 +578,11 @@ template Matrix44 &Matrix44::SetColumn(const unsigned int ii,con } template Matrix44 &Matrix44::SetColumn(const unsigned int ii,const Point4 &t) { - assert((ii >= 0) && (ii < 4)); - ElementAt(0, ii) = t.X(); - ElementAt(1, ii) = t.Y(); - ElementAt(2, ii) = t.Z(); - ElementAt(3, ii) = t.W(); + assert((ii < 4)); + ElementAt(0, ii) = t[0]; + ElementAt(1, ii) = t[1]; + ElementAt(2, ii) = t[2]; + ElementAt(3, ii) = t[3]; return *this; }