From c1b0c15b52f4dbd0f09fccf9c56066b1493947ca Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 2 Oct 2005 10:58:31 +0000 Subject: [PATCH] Convert some nextprimes to next_table_primes. --- lib/hashtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hashtable.h b/lib/hashtable.h index aa73ad8f..0ef283ca 100644 --- a/lib/hashtable.h +++ b/lib/hashtable.h @@ -381,7 +381,7 @@ static inline void * P(new_bucket)(TAUC uns size) { return P(alloc)(TTC size); } static void P(alloc_table) (TAU) { - T.hash_size = nextprime(T.hash_size); + T.hash_size = next_table_prime(T.hash_size); T.ht = P(table_alloc)(TTC sizeof(void *) * T.hash_size); bzero(T.ht, sizeof(void *) * T.hash_size); if (2*T.hash_size < T.hash_hard_max) -- 2.39.5