off by one

This commit is contained in:
leitner
2015-06-13 12:05:16 +00:00
parent 0f622add7f
commit 4a12975f61

View File

@@ -601,12 +601,14 @@ static void tagmatches(uint32* index,size_t elements,struct string* s,
struct bitfield* b,int (*match)(struct string* s,const char* c),
uint32 index_type,enum FilterType ft) {
uint32 bottom=0;
uint32 top=elements;
uint32 top=elements-1;
uint32 mid,k,m;
long rec;
rec=0;
emptyset(b);
if (!elements) return;
while ((top>=bottom)) {
int l;