removed harmless warnings

This commit is contained in:
Paolo Cignoni 2010-10-15 09:14:35 +00:00
parent 2e9d5c0936
commit 2bdd323387
2 changed files with 6 additions and 6 deletions

View File

@ -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;
};

View File

@ -578,11 +578,11 @@ template <class T> Matrix44<T> &Matrix44<T>::SetColumn(const unsigned int ii,con
}
template <class T> Matrix44<T> &Matrix44<T>::SetColumn(const unsigned int ii,const Point4<T> &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;
}