diff options
-rw-r--r-- | runtime/ChangeLog | 4 | ||||
-rw-r--r-- | runtime/map.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog index 0c85f33a..1b271846 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,7 @@ +2005-11-10 Martin Hunt <hunt@redhat.com> + + * map.c (_stp_cmp): Use _stp_div64(). + 2005-11-09 Martin Hunt <hunt@redhat.com> * map.h: Remove HSTAT_LOG and HSTAT_LINEAR. 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 */ |