From 28facf903470d94f6e60f2424db72619d414d22a Mon Sep 17 00:00:00 2001 From: dehnert Date: Wed, 22 May 2013 14:07:13 +0200 Subject: [PATCH] Fixed bug in iterator. --- src/storage/SparseMatrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/SparseMatrix.h b/src/storage/SparseMatrix.h index a968f7ee5..850daf382 100644 --- a/src/storage/SparseMatrix.h +++ b/src/storage/SparseMatrix.h @@ -71,7 +71,7 @@ public: * * @param matrix The matrix on which this iterator operates. */ - ConstRowsIterator(SparseMatrix const& matrix, uint_fast64_t rowIndex = 0) : matrix(matrix), posIndex(0), rowIndex(0) { + ConstRowsIterator(SparseMatrix const& matrix, uint_fast64_t row = 0) : matrix(matrix), posIndex(matrix.rowIndications[row]), rowIndex(row) { // Intentionally left empty. }