Style: capitalized letters in hexadecimal literals.

This commit is contained in:
Valentin Bartenev
2018-04-04 18:13:05 +03:00
parent 43ba7aad6c
commit 0665896a55
24 changed files with 633 additions and 633 deletions

View File

@@ -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);
}