From fed86bc78ae18eafd9fe247f7cc56ef3dcec6d09 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 26 Oct 2022 17:18:05 +0800 Subject: fix(spell): fix wrong cast (#20810) Fix #20787 --- src/nvim/spellsuggest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/spellsuggest.c b/src/nvim/spellsuggest.c index fbe2ec837b..400579a233 100644 --- a/src/nvim/spellsuggest.c +++ b/src/nvim/spellsuggest.c @@ -2250,7 +2250,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so ftp = (fromto_T *)gap->ga_data + sp->ts_curi++; if (*ftp->ft_from != *p) { // past possible matching entries - sp->ts_curi = (char_u)gap->ga_len; + sp->ts_curi = (int16_t)gap->ga_len; break; } if (STRNCMP(ftp->ft_from, p, STRLEN(ftp->ft_from)) == 0 -- cgit