Skip to content

Commit 7c26ee3

Browse files
committed
be friendly to compilers for comparing between uint and int
1 parent 3f0cfa6 commit 7c26ee3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/c/ngx_http_clojure_mem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ typedef struct {
165165
ngx_http_upstream_rr_peer_data_t rrp;
166166
ngx_http_clojure_srv_conf_t *conf;
167167
ngx_http_request_t *r;
168-
ngx_int_t peer_pos_or_len;
168+
ngx_uint_t peer_pos_or_len;
169169
u_char *peer_url;
170170
/* ngx_uint_t tries; */
171171
/* ngx_event_get_peer_pt get_rr_peer; */

src/c/ngx_http_clojure_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2516,7 +2516,7 @@ static ngx_int_t ngx_http_clojure_upstream_init_load_balancer_peer(ngx_http_requ
25162516
return NGX_ERROR;
25172517
}
25182518

2519-
pd->peer_pos_or_len = -1;
2519+
pd->peer_pos_or_len = NGX_CONF_UNSET_UINT;
25202520
pd->peer_url = NULL;
25212521

25222522
r->upstream->peer.data = &pd->rrp;

0 commit comments

Comments
 (0)