Skip to content

Commit fb6a1ed

Browse files
committed
build fixed for GCC.
1 parent 32ddc15 commit fb6a1ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ngx_http_tnt_module.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,7 @@ ngx_http_tnt_format_prepare(ngx_http_tnt_loc_conf_t *conf,
15181518
ngx_strncmp(key.data, conf->limit_name.data,
15191519
conf->limit_name.len) == 0)
15201520
{
1521+
prepare_result->limit = conf->select_limit_max;
15211522
tmp = ngx_atoi(value.data, value.len);
15221523

15231524
if (tmp >= 0) {
@@ -1526,9 +1527,8 @@ ngx_http_tnt_format_prepare(ngx_http_tnt_loc_conf_t *conf,
15261527
goto not_allowed;
15271528
}
15281529

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

0 commit comments

Comments
 (0)