]> git.kaiwu.me - nginx.git/commitdiff
fix SIGFPE on alpha
authorIgor Sysoev <igor@sysoev.ru>
Fri, 6 Oct 2006 13:28:19 +0000 (13:28 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 6 Oct 2006 13:28:19 +0000 (13:28 +0000)
src/core/ngx_hash.c

index 0e9bc2c5d5ba9d4842beaf3452f472b1b41a1414..c1d323d810d04fdfbbdd69a12e128239acd07db1 100644 (file)
@@ -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) {