Skip to content

Commit 1b5d23b

Browse files
committed
replaced magic number
1 parent f665228 commit 1b5d23b

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
@@ -44,7 +44,7 @@ bool CharacterConverter::isFull() {
4444
bool CharacterConverter::isEmpty() { return state->bytes_stored == 0; }
4545

4646
bool CharacterConverter::isValidState() {
47-
if (state->total_bytes > 4)
47+
if (state->total_bytes > MAX_UTF8_LENGTH)
4848
return false;
4949

5050
const char32_t max_utf32_value =

0 commit comments

Comments
 (0)