mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
refactor: replace char_u with char 4 (#19987)
* refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -1270,7 +1270,7 @@ static int get_encoded_char_adv(const char_u **p)
|
||||
int64_t num = 0;
|
||||
for (int bytes = s[1] == 'x' ? 1 : s[1] == 'u' ? 2 : 4; bytes > 0; bytes--) {
|
||||
*p += 2;
|
||||
int n = hexhex2nr(*p);
|
||||
int n = hexhex2nr((char *)(*p));
|
||||
if (n < 0) {
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user