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. }