From 39b05edb2479ba910582f3c4d023410c9c0d9756 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 6 Oct 2006 13:28:19 +0000 Subject: fix SIGFPE on alpha --- src/core/ngx_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c index 0e9bc2c5d..c1d323d81 100644 --- a/src/core/ngx_hash.c +++ b/src/core/ngx_hash.c @@ -166,7 +166,7 @@ ngx_hash_init(ngx_hash_init_t *hinit, ngx_hash_key_t *names, ngx_uint_t nelts) bucket_size = hinit->bucket_size - sizeof(void *); - start = nelts / (bucket_size / (2 * sizeof(void *)) - 1); + start = nelts / (bucket_size / (2 * sizeof(void *))); start = start ? start : 1; if (hinit->max_size > 10000 && hinit->max_size / nelts < 100) { -- cgit