From cbf719568aa044b8b43021c57fcde660bab0c623 Mon Sep 17 00:00:00 2001 From: Lanchid Date: Fri, 7 Dec 2012 11:15:12 +0100 Subject: [PATCH] Added correct return value computation in method MakeRowsAbsorbing of class SquareSparseMatrix. --- src/storage/SquareSparseMatrix.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/storage/SquareSparseMatrix.h b/src/storage/SquareSparseMatrix.h index a81302b1c..e50340538 100644 --- a/src/storage/SquareSparseMatrix.h +++ b/src/storage/SquareSparseMatrix.h @@ -665,13 +665,12 @@ public: * This function makes the rows given by the bit vector absorbing. */ bool makeRowsAbsorbing(const mrmc::storage::BitVector rows) { + bool result = true; for (auto row : rows) { - makeRowAbsorbing(row); + result = result && makeRowAbsorbing(row); } - //FIXME: Had no return value; as I compile with -Werror ATM, build did not work so I added: - return false; - //(Thomas Heinemann, 06.12.2012) + return result; } /*!