summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-10-06 13:28:19 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-10-06 13:28:19 +0000
commit39b05edb2479ba910582f3c4d023410c9c0d9756 (patch)
tree4e0b035ae6593459d42400b947815625238150be
parent852cde4ccd03b755f776ba3e31ea2cd038aad666 (diff)
downloadnginx-39b05edb2479ba910582f3c4d023410c9c0d9756.tar.gz
nginx-39b05edb2479ba910582f3c4d023410c9c0d9756.tar.bz2
fix SIGFPE on alpha
-rw-r--r--src/core/ngx_hash.c2
1 files changed, 1 insertions, 1 deletions
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) {