Skip to content
Browse files

Fix compilation error for nginx 0.6

  • Loading branch information...
1 parent bd35d88 commit 9c25ccd35d7c0f5b3cef770d0c9c06318c2f89b4 @gnosek committed Nov 11, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 ngx_http_upstream_fair_module.c
View
2 ngx_http_upstream_fair_module.c
@@ -446,7 +446,7 @@ ngx_http_upstream_free_fair_peer(ngx_peer_connection_t *pc, void *data,
weight_delta = peer->weight / peer->max_fails;
- if (peer->current_weight < weight_delta) {
+ if ((ngx_uint_t) peer->current_weight < weight_delta) {
peer->current_weight = 0;
} else {
peer->current_weight -= weight_delta;

0 comments on commit 9c25ccd

Please sign in to comment.
Something went wrong with that request. Please try again.