Skip to content

Commit 2db9b2c

Browse files
committed
removed cast; style
1 parent 2b327e3 commit 2db9b2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/__support/wchar/character_converter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ ErrorOr<char8_t> CharacterConverter::pop_utf8() {
7070
char32_t output;
7171

7272
// 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);
73+
const size_t shift_amount =
74+
(state->total_bytes - state->bytes_processed - 1) * ENCODED_BITS_PER_UTF8;
7575
if (state->bytes_processed == 0) {
7676
/*
7777
Choose the correct set of most significant bits to encode the length

0 commit comments

Comments
 (0)