Skip to content

Commit

Permalink
Fix invalid comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
dinikolop committed Feb 19, 2018
1 parent a07d03d commit f3e9855
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 f3e9855

Please sign in to comment.