Mercurial > hg > nginx
changeset 746:e6faf88152df
fix SIGFPE on alpha
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 06 Oct 2006 13:28:19 +0000 |
parents | 95aa79944291 |
children | 56e33c6efee7 |
files | src/core/ngx_hash.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {