X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isamb%2Ftstisamb.c;h=08ff71e9ee7c30cc7d29c76812eee154eceb7ad8;hb=96e6851d3c808ca93c181226d510ea7f2a58b1aa;hp=66a2b2f6e6676e66bf8ca53e091955a16dabd33d;hpb=39b9f004ecc7242730ef003f387a16c50dac33f0;p=idzebra-moved-to-github.git diff --git a/isamb/tstisamb.c b/isamb/tstisamb.c index 66a2b2f..08ff71e 100644 --- a/isamb/tstisamb.c +++ b/isamb/tstisamb.c @@ -1,4 +1,4 @@ -/* $Id: tstisamb.c,v 1.5 2004-06-02 12:30:32 adam Exp $ +/* $Id: tstisamb.c,v 1.6 2004-06-03 00:24:12 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -110,12 +110,12 @@ void tst_forward(ISAMB isb, int n) /* read the entries */ pp = isamb_pp_open (isb, isamc_p); - for (i = 0; i xuntil) + int xu = i; + isamb_pp_forward(pp, &x, &xu); + if (x != xu && xu != x+1) { yaz_log(LOG_WARN, "isamb_pp_forward (2). Got %d (expected %d)", - x, xuntil); + x, xu); exit(4); } ri.no++;