Skip to content

Commit f3e9855

Browse files
committed
Fix invalid comparison
1 parent a07d03d commit f3e9855

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)