diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2023-04-07 21:43:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 21:43:00 +0200 |
commit | 2d78e656b715119ca11d131a1a932f22f1b4ad36 (patch) | |
tree | 2cb91a5838a33174019389c2e8e5e537a04ad914 /src/nvim/mbyte.c | |
parent | 04933b1ea968f958d2541dd65fd33ebb503caac3 (diff) | |
download | rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.tar.gz rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.tar.bz2 rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.zip |
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index b44c3e52cb..ab787524a9 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -726,7 +726,7 @@ bool utf_composinglike(const char *p1, const char *p2) if (!arabic_maycombine(c2)) { return false; } - return arabic_combine(utf_ptr2char((char *)p1), c2); + return arabic_combine(utf_ptr2char(p1), c2); } /// Convert a UTF-8 string to a wide character @@ -1312,10 +1312,10 @@ static int utf_strnicmp(const char *s1, const char *s2, size_t n1, size_t n2) // to fold just one character to determine the result of comparison. if (c1 != -1 && c2 == -1) { - n1 = (size_t)utf_char2bytes(utf_fold(c1), (char *)buffer); + n1 = (size_t)utf_char2bytes(utf_fold(c1), buffer); s1 = buffer; } else if (c2 != -1 && c1 == -1) { - n2 = (size_t)utf_char2bytes(utf_fold(c2), (char *)buffer); + n2 = (size_t)utf_char2bytes(utf_fold(c2), buffer); s2 = buffer; } |