We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f665228 commit 1b5d23bCopy full SHA for 1b5d23b
libc/src/__support/wchar/character_converter.cpp
@@ -44,7 +44,7 @@ bool CharacterConverter::isFull() {
44
bool CharacterConverter::isEmpty() { return state->bytes_stored == 0; }
45
46
bool CharacterConverter::isValidState() {
47
- if (state->total_bytes > 4)
+ if (state->total_bytes > MAX_UTF8_LENGTH)
48
return false;
49
50
const char32_t max_utf32_value =
0 commit comments