aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_upstream_ip_hash_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-08-24 15:28:06 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-08-24 15:28:06 +0000
commit27db2b19007f2fbcac58d75c19577301226d4e6c (patch)
tree95bab32265709506e2f47e81cc2d538c5cad0f72 /src/http/modules/ngx_http_upstream_ip_hash_module.c
parent43f3aead1456eb8199c73660417647ce1b5c59a6 (diff)
downloadnginx-27db2b19007f2fbcac58d75c19577301226d4e6c.tar.gz
nginx-27db2b19007f2fbcac58d75c19577301226d4e6c.zip
fix ip_hash on 64-bit platform
Diffstat (limited to 'src/http/modules/ngx_http_upstream_ip_hash_module.c')
-rw-r--r--src/http/modules/ngx_http_upstream_ip_hash_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_upstream_ip_hash_module.c b/src/http/modules/ngx_http_upstream_ip_hash_module.c
index 3ef424921..1c002e532 100644
--- a/src/http/modules/ngx_http_upstream_ip_hash_module.c
+++ b/src/http/modules/ngx_http_upstream_ip_hash_module.c
@@ -160,7 +160,7 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data)
p = hash % iphp->rrp.peers->number;
n = p / (8 * sizeof(uintptr_t));
- m = 1 << p % (8 * sizeof(uintptr_t));
+ m = (uintptr_t) 1 << p % (8 * sizeof(uintptr_t));
if (!(iphp->rrp.tried[n] & m)) {