From 09f40d2e1e5f987b97410535435a7a1db7323511 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Oct 2022 21:48:43 -0400 Subject: Use uppercase integer literal suffixes --- src/n3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/n3.c') diff --git a/src/n3.c b/src/n3.c index fd26d69f..2cbfb55a 100644 --- a/src/n3.c +++ b/src/n3.c @@ -112,17 +112,17 @@ read_UCHAR(SerdReader* const reader, const Ref dest, uint32_t* const char_code) uint32_t c = code; switch (size) { case 4: - buf[3] = (uint8_t)(0x80u | (c & 0x3Fu)); + buf[3] = (uint8_t)(0x80U | (c & 0x3FU)); c >>= 6; c |= (16 << 12); // set bit 4 SERD_FALLTHROUGH; case 3: - buf[2] = (uint8_t)(0x80u | (c & 0x3Fu)); + buf[2] = (uint8_t)(0x80U | (c & 0x3FU)); c >>= 6; c |= (32 << 6); // set bit 5 SERD_FALLTHROUGH; case 2: - buf[1] = (uint8_t)(0x80u | (c & 0x3Fu)); + buf[1] = (uint8_t)(0x80U | (c & 0x3FU)); c >>= 6; c |= 0xC0; // set bits 6 and 7 SERD_FALLTHROUGH; -- cgit v1.2.1