Skip to content

Commit b46a878

Browse files
author
Sriya Pratipati
committed
changed variable name
1 parent 19fabd3 commit b46a878

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
@@ -48,10 +48,10 @@ int CharacterConverter::push(char8_t utf8_byte) {
4848
}
4949
// Any subsequent push
5050
// Adding 6 more bits so need to left shift
51-
const int shift_amount = 6;
51+
const int BITS_PER_UTF8 = 6;
5252
if (cpp::countl_one(utf8_byte) == 1 && !isComplete()) {
5353
char32_t byte = utf8_byte & 0x3F;
54-
state->partial = state->partial << shift_amount;
54+
state->partial = state->partial << BITS_PER_UTF8;
5555
state->partial |= byte;
5656
state->bytes_processed++;
5757
return 0;

0 commit comments

Comments
 (0)