# HG changeset patch # User Igor Sysoev # Date 1160141299 0 # Node ID e6faf88152df7abbac28bb4baebbb7bcbe31514b # Parent 95aa79944291e0839c38f9c37a1186805204ab01 fix SIGFPE on alpha diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c --- a/src/core/ngx_hash.c +++ b/src/core/ngx_hash.c @@ -166,7 +166,7 @@ ngx_hash_init(ngx_hash_init_t *hinit, ng 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) {