Skip to content

Commit

Permalink
Refactor CodeOp bitfields
Browse files Browse the repository at this point in the history
  • Loading branch information
mezpusz committed Apr 11, 2024
1 parent eeab3ca commit 3984a05
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 173 deletions.
4 changes: 2 additions & 2 deletions Indexing/ClauseCodeTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ bool ClauseCodeTree::removeOneOfAlternatives(CodeOp* op, Clause* cl, Stack<CodeO
{
unsigned initDepth=firstsInBlocks->size();

while(!op->isSuccess() || op->getSuccessResult()!=cl) {
while(!op->isSuccess() || op->getSuccessResult<Clause>()!=cl) {
op=op->alternative();
if(!op) {
firstsInBlocks->truncate(initDepth);
Expand Down Expand Up @@ -574,7 +574,7 @@ Clause* ClauseCodeTree::ClauseMatcher::next(int& resolvedQueryLit)
}
}
else if(lm->op->isSuccess()) {
Clause* candidate=static_cast<Clause*>(lm->op->getSuccessResult());
Clause* candidate=lm->op->getSuccessResult<Clause>();
RSTAT_MCTR_INC("candidates", lms.size()-1);
if(checkCandidate(candidate, resolvedQueryLit)) {
RSTAT_MCTR_INC("candidates (success)", lms.size()-1);
Expand Down

0 comments on commit 3984a05

Please sign in to comment.