From 6099a10f01119ff54c1d23ca8d50ce03bd430958 Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 10 Nov 2005 18:33:54 +0000 Subject: 2005-11-10 Martin Hunt * map.c (_stp_cmp): Use _stp_div64(). --- runtime/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/map.c') diff --git a/runtime/map.c b/runtime/map.c index bbcd144a..76f8b87b 100644 --- a/runtime/map.c +++ b/runtime/map.c @@ -431,8 +431,8 @@ static int _stp_cmp (struct list_head *a, struct list_head *b, int keynum, int d b = sd2->max; break; case SORT_AVG: - a = sd1->sum / sd1->count; - b = sd2->sum / sd2->count; + a = _stp_div64 (NULL, sd1->sum, sd1->count); + b = _stp_div64 (NULL, sd2->sum, sd2->count); break; default: /* should never happen */ -- cgit