From e69cf7d630520f805cb8dd8e4620665e4eb69794 Mon Sep 17 00:00:00 2001 From: Nikolaos Kavvadias Date: Tue, 20 Apr 2021 19:05:26 +0200 Subject: [PATCH] rtest_ac_matrix.cpp: Fix condition Fixes ``` [rtest_ac_matrix.cpp:424]: (style) Condition 'opeqbad1==false' is always false [rtest_ac_matrix.cpp:423]: (style) Variable 'opeqbad' is assigned a value that is never used. ``` --- tests/rtest_ac_matrix.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/rtest_ac_matrix.cpp b/tests/rtest_ac_matrix.cpp index ccc83ab..5e73241 100644 --- a/tests/rtest_ac_matrix.cpp +++ b/tests/rtest_ac_matrix.cpp @@ -419,10 +419,10 @@ int main(int argc, char *argv[]) // Testing operator==() with wrong-sized matrix cout << "Testing: " << std::left << setw(fw) << matA.type_name() << ".operator==(" << matD2.type_name() << ") RESULT: "; - bool opeqbad1 = true; + opeqbad = true; if (matA == matD2) { opeqbad = false; } - if (opeqbad1 == false) { cout << "FAILED" << endl; fail_count++; } - else { cout << "PASSED" << endl; } + if (opeqbad == false) { cout << "FAILED" << endl; fail_count++; } + else { cout << "PASSED" << endl; } // Test method sum() cout << "Testing: " << std::left << setw(fw) << matA.type_name() << ".sum() RESULT: ";