From 04933b1ea968f958d2541dd65fd33ebb503caac3 Mon Sep 17 00:00:00 2001 From: ii14 <59243201+ii14@users.noreply.github.com> Date: Fri, 7 Apr 2023 21:08:16 +0200 Subject: refactor: remove redundant casts --- src/nvim/memline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/memline.c') diff --git a/src/nvim/memline.c b/src/nvim/memline.c index 1e2500fb53..18d5e75a53 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -3988,7 +3988,7 @@ int inc(pos_T *lp) if (lp->col != MAXCOL) { const char *const p = ml_get_pos(lp); if (*p != NUL) { // still within line, move to next char (may be NUL) - const int l = utfc_ptr2len((char *)p); + const int l = utfc_ptr2len(p); lp->col += l; return ((p[l] != NUL) ? 0 : 2); -- cgit