File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ struct utf8_iterator {
174174
175175 // quickpath
176176 if (!(*ptr & 0b1000'0000u )) CTRE_LIKELY {
177- return *ptr;
177+ return static_cast < char32_t >( *ptr) ;
178178 }
179179
180180 // calculate length based on first 5 bits
Original file line number Diff line number Diff line change @@ -3267,7 +3267,7 @@ struct utf8_iterator {
32673267
32683268 // quickpath
32693269 if (!(*ptr & 0b1000'0000u)) CTRE_LIKELY {
3270- return *ptr;
3270+ return static_cast<char32_t>( *ptr) ;
32713271 }
32723272
32733273 // calculate length based on first 5 bits
Original file line number Diff line number Diff line change @@ -3264,7 +3264,7 @@ struct utf8_iterator {
32643264
32653265 // quickpath
32663266 if (!(*ptr & 0b1000'0000u )) CTRE_LIKELY {
3267- return *ptr;
3267+ return static_cast < char32_t >( *ptr) ;
32683268 }
32693269
32703270 // calculate length based on first 5 bits
You can’t perform that action at this time.
0 commit comments