Skip to content

Commit 8c20fb6

Browse files
Wrong values printed in debug output (#298)
In a testing utility that checks for equality between two matrix structures, if inequality was found, the wrong data was printed to screen. This meta-bug is not expected to have had any ill effects -- the error detection mechanism itself was correct (and for everything that has been merged or released did not trigger); nonetheless, this MR fixes it. Many thanks to Aleksa for detecting and fixing the bug!
1 parent 2eee370 commit 8c20fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils/matrix_values_check.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ namespace grb {
334334
for( auto t = storage1.col_start[ i ]; t < storage1.col_start[ i + 1 ]; t++ ) {
335335
if( storage1.row_index[ t ] != storage2.row_index[ t ] ) {
336336
std::cerr << "Error: row_index[" << t << "] is different: "
337-
<< storage1.row_index[ i ] << " != " << storage2.row_index[ i ]
337+
<< storage1.row_index[ t ] << " != " << storage2.row_index[ t ]
338338
<< std::endl;
339339
return FAILED;
340340
}

0 commit comments

Comments
 (0)