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 2b327e3 commit 2db9b2cCopy full SHA for 2db9b2c
libc/src/__support/wchar/character_converter.cpp
@@ -70,8 +70,8 @@ ErrorOr<char8_t> CharacterConverter::pop_utf8() {
70
char32_t output;
71
72
// Shift to get the next 6 bits from the utf32 encoding
73
- const char32_t shift_amount =
74
- static_cast<char32_t>((state->total_bytes - state->bytes_processed - 1) * ENCODED_BITS_PER_UTF8);
+ const size_t shift_amount =
+ (state->total_bytes - state->bytes_processed - 1) * ENCODED_BITS_PER_UTF8;
75
if (state->bytes_processed == 0) {
76
/*
77
Choose the correct set of most significant bits to encode the length
0 commit comments