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 80d3a83 commit 4f59bc7Copy full SHA for 4f59bc7
libc/src/__support/wchar/character_converter.cpp
@@ -55,7 +55,8 @@ int CharacterConverter::push(char8_t utf8_byte) {
55
// Adding 6 more bits so need to left shift
56
constexpr size_t ENCODED_BITS_PER_UTF8 = 6;
57
if (cpp::countl_one(utf8_byte) == 1 && !isComplete()) {
58
- char32_t byte = utf8_byte & mask_trailing_ones<uint32_t, ENCODED_BITS_PER_UTF8>();
+ char32_t byte =
59
+ utf8_byte & mask_trailing_ones<uint32_t, ENCODED_BITS_PER_UTF8>();
60
state->partial = state->partial << ENCODED_BITS_PER_UTF8;
61
state->partial |= byte;
62
state->bytes_processed++;
0 commit comments