Skip to content

Commit

Permalink
Merge pull request #157 from OpenTriply/fix-search-bug
Browse files Browse the repository at this point in the history
Fix invalid comparison
  • Loading branch information
LaurensRietveld authored Feb 20, 2018
2 parents a07d03d + f3e9855 commit 23fcd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libhdt/src/triples/BitmapTriplesIterators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ void ObjectIndexIterator::updateOutput() {

bool ObjectIndexIterator::hasNext()
{
return posIndex <= maxIndex;
return posIndex <= maxIndex && maxIndex >= 0;
}

TripleID *ObjectIndexIterator::next()
Expand Down

0 comments on commit 23fcd28

Please sign in to comment.