commit fed86bc78ae18eafd9fe247f7cc56ef3dcec6d09
parent c00844aee4d9b607073ff123dfe2e872c9b84954
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed, 26 Oct 2022 17:18:05 +0800
fix(spell): fix wrong cast (#20810)
Fix #20787
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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