Skip to content

Commit

Permalink
🎨 Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chinyi0523 committed Dec 26, 2023
1 parent fc29018 commit c241351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/boolean_matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ size_t BooleanMatrix::filter_duplicate_row_operations() {
auto& [row_src, row_dest] = _row_operations[ith_row_op];
auto const first_match = last_used.contains(row_src) &&
last_used[row_src].row_idx == row_dest &&
_row_operations[last_used[row_src].op_idx].first == row_src; // make sure the destinations are matched
_row_operations[last_used[row_src].op_idx].first == row_src; // make sure the destinations are matched

auto const second_match = last_used.contains(row_dest) &&
last_used[row_dest].row_idx == row_src &&
_row_operations[last_used[row_dest].op_idx].second == row_dest; // make sure the destinations are matched
_row_operations[last_used[row_dest].op_idx].second == row_dest; // make sure the destinations are matched

if (first_match && second_match) {
dups.emplace_back(ith_row_op);
Expand Down

0 comments on commit c241351

Please sign in to comment.