Permalink
Browse files

fix cast from pointer to integer of different size

  • Loading branch information...
replay committed Sep 5, 2011
1 parent 742c9cd commit 47b8c272541e63363a19c5ff658b7ba5004e0733
Showing with 1 addition and 1 deletion.
  1. +1 −1 ngx_http_upstream_consistent_hash_module.c
@@ -125,7 +125,7 @@ ngx_http_upstream_init_consistent_hash(ngx_conf_t *cf,
ngx_http_upstream_consistent_hash_buckets *buckets;
ngx_http_upstream_consistent_hash_continuum *continuum;
- for (i=0;i<HASH_DATA_LENGTH;i++) hash_data[i] = NULL;
+ for (i=0;i<HASH_DATA_LENGTH;i++) hash_data[i] = 0;
step = (uint32_t) (0xffffffff / MMC_CONSISTENT_BUCKETS);

0 comments on commit 47b8c27

Please sign in to comment.