diff options
| author | Uzair Nawaz <uzairnawaz@google.com> | 2025-06-16 21:28:51 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-16 21:28:51 +0000 |
| commit | 38daa6d4ef1f3386cc50198199c5ec61dcb012af (patch) | |
| tree | 18e656c49826cb4d49ecba34268b76de2e66d15b /libc/src/__support | |
| parent | 60a59e350bfa909d3caf5b5b0dba8b473746ea0f (diff) | |
[libc] build fix: always use our char8_t headers even in overlay mode (#144433)
Build fix caused by certain platforms not providing char8_t when
expected
Temporary fix to just always use our own definition, even in overlay
mode.
Diffstat (limited to 'libc/src/__support')
| -rw-r--r-- | libc/src/__support/wchar/character_converter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/src/__support/wchar/character_converter.cpp b/libc/src/__support/wchar/character_converter.cpp index bac2f6d827e1..ca709769616c 100644 --- a/libc/src/__support/wchar/character_converter.cpp +++ b/libc/src/__support/wchar/character_converter.cpp @@ -70,7 +70,7 @@ ErrorOr<char8_t> CharacterConverter::pop_utf8() { char32_t output; // Shift to get the next 6 bits from the utf32 encoding - const char32_t shift_amount = + const size_t shift_amount = (state->total_bytes - state->bytes_processed - 1) * ENCODED_BITS_PER_UTF8; if (state->bytes_processed == 0) { /* |
