X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rset%2Frstemp.c;h=b06a1fa2b0729fb18e4183cf573957a647637479;hb=b5eb8cd7ae4134d915ed8b4aec25ab90c8bd0dcb;hp=8971b497702bad1cecbd8ba2a8c2a7ac9ba82448;hpb=5660e317ea2972ea6bb6a4f8a415f71579f71103;p=idzebra-moved-to-github.git diff --git a/rset/rstemp.c b/rset/rstemp.c index 8971b49..b06a1fa 100644 --- a/rset/rstemp.c +++ b/rset/rstemp.c @@ -1,4 +1,4 @@ -/* $Id: rstemp.c,v 1.40 2004-08-06 10:09:28 heikki Exp $ +/* $Id: rstemp.c,v 1.42 2004-08-06 12:55:03 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps @@ -79,7 +79,7 @@ struct rset_temp_info { struct rset_temp_rfd { struct rset_temp_info *info; struct rset_temp_rfd *next; - int *countp; + zint *countp; void *buf; size_t pos_cur; /* current position in set */ zint cur; /* number of the current hit */ @@ -374,6 +374,6 @@ static int r_write (RSFD rfd, const void *buf) static void r_pos (RSFD rfd, double *current, double *total) { struct rset_temp_rfd *mrfd = (struct rset_temp_rfd*) rfd; - *current=mrfd->cur; - *total=mrfd->info->hits; + *current=(double) mrfd->cur; + *total=(double) mrfd->info->hits; }