Skip to content

Commit 0a5f434

Browse files
author
Sriya Pratipati
committed
removed unnecessary check
1 parent 72db39d commit 0a5f434

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
@@ -34,7 +34,7 @@ bool CharacterConverter::isComplete() {
3434
int CharacterConverter::push(char8_t utf8_byte) {
3535
uint8_t num_ones = static_cast<uint8_t>(cpp::countl_one(utf8_byte));
3636
// Checking the first byte if first push
37-
if (state->bytes_processed == 0 && state->total_bytes == 0) {
37+
if (state->bytes_processed == 0) {
3838
// UTF-8 char has 1 byte total
3939
if (num_ones == 0) {
4040
state->total_bytes = 1;

0 commit comments

Comments
 (0)