Skip to content

Commit

Permalink
small change to checkOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
realHannes committed Oct 27, 2024
1 parent e5c3a9f commit a60b51f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index/CompressedBlockPrefiltering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ static void checkEvalRequirements(const std::vector<BlockMetadata>& input,
AD_CORRECTNESS_CHECK(getMaskedTriple(b1.lastTriple_) <=
getMaskedTriple(b2.lastTriple_));
return true;
} else if (b1.blockIndex_ == b2.blockIndex_) {
}
if (b1.blockIndex_ == b2.blockIndex_) {
// Given the previous check detects duplicates in the input, the
// correctness check here will never evaluate to true.
// => blockIndex_ assignment issue.
AD_CORRECTNESS_CHECK(b1 == b2);
return false;
} else {
AD_CORRECTNESS_CHECK(getMaskedTriple(b1.lastTriple_) >
getMaskedTriple(b2.firstTriple_));
return false;
}
return false;
};
if (!std::ranges::is_sorted(input, checkOrder)) {
throwRuntimeError("The blocks must be provided in sorted order.");
Expand Down

0 comments on commit a60b51f

Please sign in to comment.