diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-04 22:35:50 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-07 14:54:01 +0200 |
commit | 2a378e6e82cececb12339f2df51ffe107039d867 (patch) | |
tree | acf9250e683b303d2a22ff32455100cc4f6802cf /src/nvim/fileio.c | |
parent | d9ec57e16a13f66a4b17edd872786e2c67348752 (diff) | |
download | rneovim-2a378e6e82cececb12339f2df51ffe107039d867.tar.gz rneovim-2a378e6e82cececb12339f2df51ffe107039d867.tar.bz2 rneovim-2a378e6e82cececb12339f2df51ffe107039d867.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 24052d4951..ad0440e0b3 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -1377,7 +1377,7 @@ retry: } else { len = utf_head_off(ptr, p); p -= len; - u8c = utf_ptr2char(p); + u8c = utf_ptr2char((char *)p); if (len == 0) { // Not a valid UTF-8 character, retry with // another fenc when possible, otherwise just @@ -3982,7 +3982,7 @@ static int buf_write_bytes(struct bw_info *ip) break; } if (n > 1) { - c = utf_ptr2char(ip->bw_rest); + c = utf_ptr2char((char *)ip->bw_rest); } else { c = ip->bw_rest[0]; } @@ -4010,7 +4010,7 @@ static int buf_write_bytes(struct bw_info *ip) break; } if (n > 1) { - c = utf_ptr2char(buf + wlen); + c = utf_ptr2char((char *)buf + wlen); } else { c = buf[wlen]; } |