projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added several type casts and changed many types - mostly from int to zint.
[idzebra-moved-to-github.git]
/
rset
/
rsbool.c
diff --git
a/rset/rsbool.c
b/rset/rsbool.c
index
0289566
..
ec3831d
100644
(file)
--- 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
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 */
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 ",
*total=*current/r ;
#if RSET_DEBUG
yaz_log(LOG_DEBUG,"bool_pos: (%s/%s) %0.1f/%0.1f= %0.4f ",