🐛 Fix FTDI::get_utf8_char_and_inc compile (#24048)

This commit is contained in:
Ludy 2022-04-18 07:01:28 +02:00 committed by GitHub
parent c58c5b09ab
commit fc87834cc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@
return val; return val;
} }
utf8_char_t FTDI::get_utf8_char_and_inc(char *&c) { utf8_char_t FTDI::get_utf8_char_and_inc(const char *&c) {
utf8_char_t val = *(uint8_t*)c++; utf8_char_t val = *(uint8_t*)c++;
if ((val & 0xC0) == 0xC0) if ((val & 0xC0) == 0xC0)
while ((*c & 0xC0) == 0x80) while ((*c & 0xC0) == 0x80)