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 6104232 commit 50ec604Copy full SHA for 50ec604
libc/src/__support/wchar/character_converter.cpp
@@ -53,7 +53,7 @@ ErrorOr<char8_t> CharacterConverter::pop_utf8() {
53
54
// the number of bits per utf-8 byte that actually encode character
55
// information not metadata (# of bits excluding the byte headers)
56
- const int ENCODED_BITS_PER_BYTE = 6;
+ constexpr size_t ENCODED_BITS_PER_UTF8 = 6;
57
const int MASK_ENCODED_BITS =
58
mask_trailing_ones<unsigned int, ENCODED_BITS_PER_BYTE>();
59
0 commit comments