diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-09 10:29:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 10:29:51 +0200 |
commit | dfeb5b47bcde7984b2b1820f0268d0d5d736f98d (patch) | |
tree | 87e129c92affece6421d4585b5d5c20996891ec5 /src/nvim/fileio.c | |
parent | dbdd58e548fcf55848359b696275fd848756db7b (diff) | |
parent | e31b32a293f6ba8708499a176234f8be1df6a145 (diff) | |
download | rneovim-dfeb5b47bcde7984b2b1820f0268d0d5d736f98d.tar.gz rneovim-dfeb5b47bcde7984b2b1820f0268d0d5d736f98d.tar.bz2 rneovim-dfeb5b47bcde7984b2b1820f0268d0d5d736f98d.zip |
Merge pull request #18466 from dundargoc/refactor/remove-char_u
refactor: replace char_u variables and functions with char
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 ad0440e0b3..a132c2db43 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -1401,7 +1401,7 @@ retry: assert(u8c <= INT_MAX); // produce UTF-8 dest -= utf_char2len((int)u8c); - (void)utf_char2bytes((int)u8c, dest); + (void)utf_char2bytes((int)u8c, (char *)dest); } // move the linerest to before the converted characters @@ -3943,8 +3943,8 @@ static int buf_write_bytes(struct bw_info *ip) * Convert latin1 in the buffer to UTF-8 in the file. */ p = ip->bw_conv_buf; // translate to buffer - for (wlen = 0; wlen < len; ++wlen) { - p += utf_char2bytes(buf[wlen], p); + for (wlen = 0; wlen < len; wlen++) { + p += utf_char2bytes(buf[wlen], (char *)p); } buf = ip->bw_conv_buf; len = (int)(p - ip->bw_conv_buf); |