fix bugs in Block/DynBlock

This commit is contained in:
Benoit Jacob
2007-12-11 10:05:50 +00:00
parent fc924bc7d4
commit effaee9bc7
2 changed files with 5 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ template<typename MatrixType, int BlockRows, int BlockCols> class Block
: m_matrix(matrix), m_startRow(startRow), m_startCol(startCol)
{
assert(startRow >= 0 && BlockRows >= 1 && startRow + BlockRows <= matrix.rows()
&& startCol >= 0 && BlockCols >= 1 && startCol + BlockCols <= matrix.rows());
&& startCol >= 0 && BlockCols >= 1 && startCol + BlockCols <= matrix.cols());
}
Block(const Block& other)