X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzsets.c;h=9cb1ca6b4f189474825be240d346212f9497774b;hb=85df66537199c30a492ad54be4fbe25fa77e18c8;hp=f4f21e81146f366db33a51e594a8f8b0a64252ef;hpb=9fe3bf8d659adc5c0623185779272d933fc51d15;p=idzebra-moved-to-github.git diff --git a/index/zsets.c b/index/zsets.c index f4f21e8..9cb1ca6 100644 --- a/index/zsets.c +++ b/index/zsets.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zsets.c,v $ - * Revision 1.9 1995-10-17 18:02:14 adam + * Revision 1.10 1995-10-30 15:08:08 adam + * Bug fixes. + * + * Revision 1.9 1995/10/17 18:02:14 adam * New feature: databases. Implemented as prefix to words in dictionary. * * Revision 1.8 1995/10/10 13:59:25 adam @@ -101,11 +104,11 @@ ZServerSetSysno *resultSetSysnoGet (ZServerInfo *zi, const char *name, { psysno = key.sysno; position++; + assert (num_i < num); if (position == positions[num_i]) { sr[num_i].sysno = psysno; rset_score (rset, rfd, &sr[num_i].score); - num_i++; if (++num_i == num) break; }