Skip to content

Commit

Permalink
fix off-by-one in check
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurizio Monge committed Apr 5, 2023
1 parent 01b8263 commit aaf1f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baspacho/baspacho/SparseStructure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ std::vector<int64_t> SparseStructure::fillReducingPermutation() const {

SparseStructure SparseStructure::extractRightBottom(int64_t startRow) {
int64_t ord = order();
BASPACHO_CHECK_LT(startRow, ord);
BASPACHO_CHECK_LE(startRow, ord);
BASPACHO_CHECK_GE(startRow, 0);
int64_t newOrd = ord - startRow;

Expand Down

0 comments on commit aaf1f37

Please sign in to comment.