-/* $Id: zsets.c,v 1.77 2005-01-15 19:38:30 adam Exp $
+/* $Id: zsets.c,v 1.79 2005-04-14 12:01:22 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
if (sort_info)
position = sort_info->num_entries;
- while (num_i < num && positions[num_i] < position)
+ while (num_i < num && positions[num_i] <= position)
num_i++;
if (sset->cache_rfd &&
(zebraSet->hits)++;
psysno = this_sys;
}
- (*rc->add) (handle, seqno, termid);
+ (*rc->add) (handle, CAST_ZINT_TO_INT(seqno), termid);
if ((est==-2) && (zebraSet->hits==esthits))
{ /* time to estimate the hits */