We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86d0cb6 commit 45d67dcCopy full SHA for 45d67dc
libc/src/__support/wchar/character_converter.cpp
@@ -44,7 +44,7 @@ int CharacterConverter::push(char8_t utf8_byte) {
44
/* Since the format is 110xxxxx, 1110xxxx, and 11110xxx for 2, 3, and 4,
45
we will make the base mask with 7 ones and right shift it as necessary. */
46
constexpr size_t SIGNIFICANT_BITS = 7;
47
- uint32_t base_mask = mask_trailing_ones<uint32_t, SIGNIFICANT_BITS>();
+ uint8_t base_mask = mask_trailing_ones<uint8_t, SIGNIFICANT_BITS>();
48
state->total_bytes = num_ones;
49
utf8_byte &= (base_mask >> num_ones);
50
}
0 commit comments