aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-23 21:48:43 -0400
committerDavid Robillard <d@drobilla.net>2022-10-23 21:48:43 -0400
commit09f40d2e1e5f987b97410535435a7a1db7323511 (patch)
treef1c41534a2cfbb611158395318805692ed575085 /src/n3.c
parent83cd85ce89590ab06e78a3ff0adf10f636c4103e (diff)
downloadserd-09f40d2e1e5f987b97410535435a7a1db7323511.tar.gz
serd-09f40d2e1e5f987b97410535435a7a1db7323511.tar.bz2
serd-09f40d2e1e5f987b97410535435a7a1db7323511.zip
Use uppercase integer literal suffixes
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c6
1 files changed, 3 insertions, 3 deletions
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;