X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=index%2Fzvrank.c;h=4322dda0c7c4576ba574cf8ce8dc35acc302a12d;hb=2e4e9c6def27f1e1463dcb6f205fab6a98054f38;hp=4c1c4b77a56b878ddb8a1fe35678f87e39b6d4c0;hpb=5f5c3226dc29b0f8f2e1ee478cbfbd03f2c319e0;p=idzebra-moved-to-github.git diff --git a/index/zvrank.c b/index/zvrank.c index 4c1c4b7..4322dda 100644 --- a/index/zvrank.c +++ b/index/zvrank.c @@ -1,4 +1,4 @@ -/* $Id: zvrank.c,v 1.7 2004-06-13 18:44:57 adam Exp $ +/* $Id: zvrank.c,v 1.8 2004-08-04 08:35:24 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps @@ -757,7 +757,7 @@ static void zv_add (void *rsi, int seqno, int i) { * score should be between 0 and 1000. If score cannot be obtained * -1 should be returned. */ -static int zv_calc (void *rsi, int sysno) +static int zv_calc (void *rsi, zint sysno) { int i, veclen; int score=0; @@ -776,7 +776,7 @@ static int zv_calc (void *rsi, int sysno) dscore=rs->sim_fct(rs->qdoc, rs->rdoc); } score = dscore * 1000; - yaz_log (LOG_LOG, "sysno=%d score=%d", sysno, score); + yaz_log (LOG_LOG, "sysno=" ZINT_FORMAT " score=%d", sysno, score); if (score > 1000) /* should not happen */ score = 1000; return score;