mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 13:42:55 +08:00
decrease number of branches
This commit is contained in:
parent
e5efadb60e
commit
066496a56c
@ -593,7 +593,7 @@ ngx_atotm(u_char *line, size_t n)
|
|||||||
ngx_int_t
|
ngx_int_t
|
||||||
ngx_hextoi(u_char *line, size_t n)
|
ngx_hextoi(u_char *line, size_t n)
|
||||||
{
|
{
|
||||||
u_char ch;
|
u_char c, ch;
|
||||||
ngx_int_t value;
|
ngx_int_t value;
|
||||||
|
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
@ -608,13 +608,10 @@ ngx_hextoi(u_char *line, size_t n)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ch >= 'A' && ch <= 'F') {
|
c = (u_char) (ch | 0x20);
|
||||||
value = value * 16 + (ch - 'A' + 10);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ch >= 'a' && ch <= 'f') {
|
if (c >= 'a' && c <= 'f') {
|
||||||
value = value * 16 + (ch - 'a' + 10);
|
value = value * 16 + (c - 'a' + 10);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user