From 1450a6f7534147e3d7252594cf06e2a1cc14b79b Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 14 Nov 2021 13:39:14 +0100 Subject: refactor(macroman): get rid of MB_COPY_CHAR macro clean up docs for MB_PTR_ADV and MB_PTR_BACK --- src/nvim/spellfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/spellfile.c') diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c index 7e8c24b1bf..0fc9012f27 100644 --- a/src/nvim/spellfile.c +++ b/src/nvim/spellfile.c @@ -3501,7 +3501,7 @@ static int store_aff_word(spellinfo_T *spin, char_u *word, char_u *afflist, afff if (ae->ae_chop != NULL) { // Remove chop string. p = newword + STRLEN(newword); - i = (int)mb_charlen(ae->ae_chop); + i = mb_charlen(ae->ae_chop); for (; i > 0; i--) { MB_PTR_BACK(newword, p); } -- cgit