X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=rset%2Frsbool.c;h=ec3831dd43f823a6709e8854a19cf8a1e7a79c78;hp=0289566796fe3d6ad2a4cecd76078c8c000be549;hb=1bb217ab477284fd7fee47f19a6e8a780fa2bb50;hpb=ba1cf01240f69bcffc890b9f85b9a52ac56696f0 diff --git a/rset/rsbool.c b/rset/rsbool.c index 0289566..ec3831d 100644 --- a/rset/rsbool.c +++ b/rset/rsbool.c @@ -1,4 +1,4 @@ -/* $Id: rsbool.c,v 1.35 2004-08-06 10:09:28 heikki Exp $ +/* $Id: rsbool.c,v 1.36 2004-08-06 12:28:23 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -595,7 +595,7 @@ static void r_pos (RSFD rfd, double *current, double *total) return; } r=1.0*(lcur+rcur)/(ltot+rtot); /* weighed average of l and r */ - *current=p->hits; + *current=(double) (p->hits); *total=*current/r ; #if RSET_DEBUG yaz_log(LOG_DEBUG,"bool_pos: (%s/%s) %0.1f/%0.1f= %0.4f ",