From: Wolfgang Bangerth Date: Tue, 15 Jan 2013 20:47:00 +0000 (+0000) Subject: Fix off-by-one error in previous commit. X-Git-Tag: v8.0.0~1554 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=088a02767af47330257674d19acec993c24b74f6;p=dealii.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); }