From ab3542a17976a3b4a70a25265f8d51b27ee0538e Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 19 Jan 2012 12:03:00 +0100 Subject: [PATCH] fixed a bug in copy constructor of template class CRSMatrix --- MathLib/LinAlg/Sparse/CRSMatrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MathLib/LinAlg/Sparse/CRSMatrix.h b/MathLib/LinAlg/Sparse/CRSMatrix.h index d4223919193..bd141bc4a6f 100644 --- a/MathLib/LinAlg/Sparse/CRSMatrix.h +++ b/MathLib/LinAlg/Sparse/CRSMatrix.h @@ -245,7 +245,7 @@ protected: { // copy the data IDX_TYPE const* row_ptr(rhs.getRowPtrArray()); - for (IDX_TYPE k(0); k<MatrixBase::_n_rows; k++) { + for (IDX_TYPE k(0); k<=MatrixBase::_n_rows; k++) { _row_ptr[k] = row_ptr[k]; } -- GitLab