Skip to content

Commit e9d7cdc

Browse files
author
Sriya Pratipati
committed
removed unnecessary check
1 parent fd22cd3 commit e9d7cdc

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
@@ -114,7 +114,7 @@ int CharacterConverter::push(char32_t utf32) {
114114
ErrorOr<char32_t> CharacterConverter::pop_utf32() {
115115
// If pop is called too early, do not reset the state, use error to determine
116116
// whether enough bytes have been pushed
117-
if (!isFull() || state->bytes_processed == 0)
117+
if (!isFull())
118118
return Error(-1);
119119
char32_t utf32 = state->partial;
120120
// reset if successful pop

0 commit comments

Comments
 (0)