diff options
author | David Robillard <d@drobilla.net> | 2022-10-23 21:48:43 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-23 21:48:43 -0400 |
commit | 09f40d2e1e5f987b97410535435a7a1db7323511 (patch) | |
tree | f1c41534a2cfbb611158395318805692ed575085 /src/n3.c | |
parent | 83cd85ce89590ab06e78a3ff0adf10f636c4103e (diff) | |
download | serd-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |