Mercurial > hg > nginx
diff src/core/ngx_string.c @ 339:8c5b69141dfd
nginx-0.0.3-2004-05-21-20:12:13 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 21 May 2004 16:12:13 +0000 |
parents | 0376cffa29e6 |
children | 37b5381fb6d8 |
line wrap: on
line diff
--- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -88,12 +88,12 @@ ngx_int_t ngx_hextoi(u_char *line, size_ } if (ch >= 'A' && ch <= 'F') { - value = value * 16 + (*line - 'A'); + value = value * 16 + (ch - 'A' + 10); continue; } if (ch >= 'a' && ch <= 'f') { - value = value * 16 + (*line - 'a'); + value = value * 16 + (ch - 'a' + 10); continue; }