From 5eda6e7705cef55a7eec94586a7a094b31391d65 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 7 Sep 2011 22:08:56 +0200 Subject: [PATCH] dlhist.c: resize_table: Oops, storing floating point value in integer. --- dlhist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlhist.c b/dlhist.c index f9defcb..e6edc17 100644 --- a/dlhist.c +++ b/dlhist.c @@ -120,7 +120,8 @@ static void he_remove(struct hash_entry *he) { static void resize_table() { - unsigned int load, i, old_size = table_size; + double load; + unsigned int i, old_size = table_size; struct hash_entry *old = table; load = HASH_TABLE_LOAD(table_count, table_size);