diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-04-04 18:13:05 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-04-04 18:13:05 +0300 |
commit | 0665896a5593fb41c92cbf164182a058ee40518c (patch) | |
tree | d657fac84d35aa3f605d25dc8e0a3c165db93b30 /src/nxt_sprintf.c | |
parent | 43ba7aad6cadfab2eb45f09e894dec072c93e6cd (diff) | |
download | unit-0665896a5593fb41c92cbf164182a058ee40518c.tar.gz unit-0665896a5593fb41c92cbf164182a058ee40518c.tar.bz2 |
Style: capitalized letters in hexadecimal literals.
Diffstat (limited to 'src/nxt_sprintf.c')
-rw-r--r-- | src/nxt_sprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_sprintf.c b/src/nxt_sprintf.c index 5f0314f2..789d58f1 100644 --- a/src/nxt_sprintf.c +++ b/src/nxt_sprintf.c @@ -455,7 +455,7 @@ nxt_vsprintf(u_char *buf, u_char *end, const char *fmt, va_list args) case 'c': d = va_arg(args, int); - *buf++ = (u_char) (d & 0xff); + *buf++ = (u_char) (d & 0xFF); fmt++; continue; @@ -604,7 +604,7 @@ nxt_integer(nxt_sprintf_t *spf, u_char *buf, uint64_t ui64) * 2 otherwise. */ - if (ui64 <= 0xffffffff) { + if (ui64 <= 0xFFFFFFFF) { ui32 = (uint32_t) ui64; start = NULL; @@ -643,7 +643,7 @@ nxt_integer(nxt_sprintf_t *spf, u_char *buf, uint64_t ui64) } else { do { - *(--p) = spf->hex[ui64 & 0xf]; + *(--p) = spf->hex[ui64 & 0xF]; ui64 >>= 4; } while (ui64 != 0); } |