From: bangerth Date: Tue, 15 Jan 2013 20:47:00 +0000 (+0000) Subject: Fix off-by-one error in previous commit. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3893e85ec38b8a2c43409c168688ff4a6a445454;p=dealii-svn.git Fix off-by-one error in previous commit. git-svn-id: https://svn.dealii.org/trunk@28071 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/sparse_matrix.h b/deal.II/include/deal.II/lac/sparse_matrix.h index f006bc055e..f2498fb6ec 100644 --- a/deal.II/include/deal.II/lac/sparse_matrix.h +++ b/deal.II/include/deal.II/lac/sparse_matrix.h @@ -2243,14 +2243,14 @@ namespace SparseMatrixIterators ? sparsity.get_rowstart_indices()[(*this)->row()] + (*this)->index() : - sparsity.get_rowstart_indices()[sparsity.n_rows()+1]); + sparsity.get_rowstart_indices()[sparsity.n_rows()]); const unsigned int other_position = (other != (*this)->get_matrix().end() ? sparsity.get_rowstart_indices()[other->row()] + other->index() : - sparsity.get_rowstart_indices()[sparsity.n_rows()+1]); + sparsity.get_rowstart_indices()[sparsity.n_rows()]); return (this_position - other_position); }