X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isamb%2Fisamb.c;h=0ee485c35089bc8ab3df6bf17317a0fb8fe06b08;hb=2ca7b6bfd7e8d9a2cb9c36bf2520b46511a594eb;hp=1f57c7313550ed04cdf1dc32442a0ae614c461eb;hpb=49d0ee122a9f86ec2967b577dcc297c501785edd;p=idzebra-moved-to-github.git diff --git a/isamb/isamb.c b/isamb/isamb.c index 1f57c73..0ee485c 100644 --- a/isamb/isamb.c +++ b/isamb/isamb.c @@ -1,4 +1,4 @@ -/* $Id: isamb.c,v 1.77 2005-04-15 10:47:49 adam Exp $ +/* $Id: isamb.c,v 1.79 2005-04-25 10:45:28 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -1799,10 +1799,10 @@ int isamb_pp_forward (ISAMB_PP pp, void *buf, const void *untilbuf) void isamb_pp_pos(ISAMB_PP pp, double *current, double *total) { /* return an estimate of the current position and of the total number of */ /* occureences in the isam tree, based on the current leaf */ - struct ISAMB_block *p = pp->block[pp->level]; assert(total); assert(current); - assert(p->leaf); + + /* if end-of-stream PP may not be leaf */ *total = (double) (pp->block[0]->no_items); *current = (double) pp->returned_numbers;