Added a few casts from zint to double/int where appropriate.
[idzebra-moved-to-github.git] / index / zvrank.c
index a6d2153..6239a3a 100644 (file)
@@ -1,6 +1,6 @@
-/* $Id: zvrank.c,v 1.14 2004-11-19 15:52:58 heikki Exp $
-   Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
-   Index Data Aps
+/* $Id: zvrank.c,v 1.16 2005-03-08 14:02:15 adam Exp $
+   Copyright (C) 1995-2005
+   Index Data ApS
 
    This file is part of the Zebra server.
 
@@ -342,7 +342,7 @@ static void idf_squared(void *rsi, void *dsi) {
         if (gocc==0)
             idf=0.0;
         else 
-            idf=blog(num_docs/gocc);
+            idf=blog(CAST_ZINT_TO_DOUBLE(num_docs/gocc));
         idf=idf*idf;
         ds->terms[i].idf=idf;
     }