Skip to content

Commit 23fcd28

Browse files
Merge pull request rdfhdt#157 from OpenTriply/fix-search-bug
Fix invalid comparison
2 parents a07d03d + f3e9855 commit 23fcd28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libhdt/src/triples/BitmapTriplesIterators.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ void ObjectIndexIterator::updateOutput() {
785785

786786
bool ObjectIndexIterator::hasNext()
787787
{
788-
return posIndex <= maxIndex;
788+
return posIndex <= maxIndex && maxIndex >= 0;
789789
}
790790

791791
TripleID *ObjectIndexIterator::next()

0 commit comments

Comments
 (0)