Skip to content

Commit 50ec604

Browse files
Update libc/src/__support/wchar/character_converter.cpp
Co-authored-by: Michael Jones <[email protected]>
1 parent 6104232 commit 50ec604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/wchar/character_converter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ErrorOr<char8_t> CharacterConverter::pop_utf8() {
5353

5454
// the number of bits per utf-8 byte that actually encode character
5555
// information not metadata (# of bits excluding the byte headers)
56-
const int ENCODED_BITS_PER_BYTE = 6;
56+
constexpr size_t ENCODED_BITS_PER_UTF8 = 6;
5757
const int MASK_ENCODED_BITS =
5858
mask_trailing_ones<unsigned int, ENCODED_BITS_PER_BYTE>();
5959

0 commit comments

Comments
 (0)