🐛 Fix FTDI::get_utf8_char_and_inc compile (#24048)
This commit is contained in:
parent
c58c5b09ab
commit
fc87834cc0
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue