mirror of
https://github.com/nginx/nginx.git
synced 2024-12-05 14:29:00 +08:00
fix SIGFPE on alpha
This commit is contained in:
parent
852cde4ccd
commit
39b05edb24
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user