From f3e98557aed22e77d8ed6d9fa5957b7d1d9b9534 Mon Sep 17 00:00:00 2001 From: Dimitris Date: Mon, 19 Feb 2018 16:51:23 +0100 Subject: [PATCH] Fix invalid comparison --- libhdt/src/triples/BitmapTriplesIterators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhdt/src/triples/BitmapTriplesIterators.cpp b/libhdt/src/triples/BitmapTriplesIterators.cpp index e975966a..88fa4ffa 100644 --- a/libhdt/src/triples/BitmapTriplesIterators.cpp +++ b/libhdt/src/triples/BitmapTriplesIterators.cpp @@ -785,7 +785,7 @@ void ObjectIndexIterator::updateOutput() { bool ObjectIndexIterator::hasNext() { - return posIndex <= maxIndex; + return posIndex <= maxIndex && maxIndex >= 0; } TripleID *ObjectIndexIterator::next()