X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fhash.c;h=3ab7136be7d5d80388906b533ea6f07aa31941bc;hb=78d218ff8a7c36feaa55c58abdcec8270654e6f1;hp=cc6ebb322c65092233e115a1e9624690bf03641a;hpb=5082839d34680c5dea88d3b65f021805b963c04d;p=gnulib.git diff --git a/lib/hash.c b/lib/hash.c index cc6ebb322..3ab7136be 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -505,6 +505,7 @@ static bool check_tuning (Hash_table *table) { const Hash_tuning *tuning = table->tuning; + float epsilon; if (tuning == &default_tuning) return true; @@ -513,7 +514,7 @@ check_tuning (Hash_table *table) fail to grow or shrink as they should. The smallest allocation is 11 (due to next_prime's algorithm), so an epsilon of 0.1 should be good enough. */ - float epsilon = 0.1f; + epsilon = 0.1f; if (epsilon < tuning->growth_threshold && tuning->growth_threshold < 1 - epsilon