aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/sign.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/sign.c')
-rw-r--r--src/nvim/sign.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/sign.c b/src/nvim/sign.c
index e2d40b4a21..6e1ae1fdec 100644
--- a/src/nvim/sign.c
+++ b/src/nvim/sign.c
@@ -884,11 +884,11 @@ static int sign_define_init_text(sign_T *sp, char_u *text)
}
// Count cells and check for non-printable chars
cells = 0;
- for (s = text; s < endp; s += utfc_ptr2len(s)) {
- if (!vim_isprintc(utf_ptr2char(s))) {
+ for (s = text; s < endp; s += utfc_ptr2len((char *)s)) {
+ if (!vim_isprintc(utf_ptr2char((char *)s))) {
break;
}
- cells += utf_ptr2cells(s);
+ cells += utf_ptr2cells((char *)s);
}
// Currently must be empty, one or two display cells
if (s != endp || cells > 2) {