diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-12 14:44:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 14:44:28 +0200 |
commit | 54a165d9a644e822207f02bdd4cf1b810d2788e3 (patch) | |
tree | f09ca6baf124ceaeaef27c095fee1e30ecb772b0 /src/nvim/mbyte.c | |
parent | f79773a3b4b3ce5a3b37652a72b12089880f32a4 (diff) | |
parent | 094cdf2d691bc005dadb5a22bb83b85f3b6dff49 (diff) | |
download | rneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.tar.gz rneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.tar.bz2 rneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.zip |
Merge pull request #19592 from dundargoc/refactor/char_u-to-char
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index 8e8cf962c7..e4d2d35c1b 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -1818,9 +1818,9 @@ bool utf_allow_break(int cc, int ncc) /// /// @param[in,out] fp Source of the character to copy. /// @param[in,out] tp Destination to copy to. -void mb_copy_char(const char_u **const fp, char_u **const tp) +void mb_copy_char(const char **const fp, char **const tp) { - const size_t l = (size_t)utfc_ptr2len((char *)(*fp)); + const size_t l = (size_t)utfc_ptr2len(*fp); memmove(*tp, *fp, l); *tp += l; |