Skip to content

Commit 6642f93

Browse files
committed
#109 - fixed
1 parent a76aa56 commit 6642f93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ngx_http_tnt_module.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,9 +1337,9 @@ ngx_http_tnt_tolower(int c)
13371337
static ngx_str_t /* dst */
13381338
ngx_http_tnt_urldecode(ngx_http_request_t *r, ngx_str_t *src)
13391339
{
1340-
ngx_int_t s;
1341-
u_char c;
1342-
ngx_str_t dst;
1340+
ngx_uint_t s;
1341+
u_char c;
1342+
ngx_str_t dst;
13431343

13441344
dst.len = 0;
13451345
dst.data = ngx_pnalloc(r->pool, src->len);
@@ -1522,12 +1522,12 @@ ngx_http_tnt_format_prepare(ngx_http_tnt_loc_conf_t *conf,
15221522

15231523
if (tmp >= 0) {
15241524

1525-
if (tmp > conf->select_limit_max) {
1525+
if ((ngx_uint_t) tmp > conf->select_limit_max) {
15261526
goto not_allowed;
15271527
}
15281528

15291529
prepare_result->limit = (ngx_uint_t)
1530-
(tmp > conf->select_limit_max ?
1530+
((ngx_uint_t) tmp > conf->select_limit_max ?
15311531
conf->select_limit_max : tmp);
15321532
expects &= ~EXPECTS_LIMIT;
15331533
}

0 commit comments

Comments
 (0)