File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change 99#ifndef LLVM_LIBC_HDR_TYPES_CHAR8_T_H
1010#define LLVM_LIBC_HDR_TYPES_CHAR8_T_H
1111
12- #ifdef LIBC_FULL_BUILD
13-
1412#include "include/llvm-libc-types/char8_t.h"
1513
16- #else // overlay mode
17-
18- #include "hdr/uchar_overlay.h"
19-
20- #endif // LLVM_LIBC_FULL_BUILD
21-
2214#endif // LLVM_LIBC_HDR_TYPES_CHAR8_T_H
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ ErrorOr<char8_t> CharacterConverter::pop_utf8() {
7171
7272 // Shift to get the next 6 bits from the utf32 encoding
7373 const char32_t shift_amount =
74- ( state->total_bytes - state->bytes_processed - 1 ) * ENCODED_BITS_PER_UTF8;
74+ static_cast < char32_t >(( state->total_bytes - state->bytes_processed - 1 ) * ENCODED_BITS_PER_UTF8) ;
7575 if (state->bytes_processed == 0 ) {
7676 /*
7777 Choose the correct set of most significant bits to encode the length
You can’t perform that action at this time.
0 commit comments