aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-26 17:18:05 +0800
committerGitHub <noreply@github.com>2022-10-26 17:18:05 +0800
commitfed86bc78ae18eafd9fe247f7cc56ef3dcec6d09 (patch)
tree21703f2f36af58bbdd094c76ae76df5b18b08718
parentc00844aee4d9b607073ff123dfe2e872c9b84954 (diff)
downloadrneovim-fed86bc78ae18eafd9fe247f7cc56ef3dcec6d09.tar.gz
rneovim-fed86bc78ae18eafd9fe247f7cc56ef3dcec6d09.tar.bz2
rneovim-fed86bc78ae18eafd9fe247f7cc56ef3dcec6d09.zip
fix(spell): fix wrong cast (#20810)
Fix #20787
-rw-r--r--src/nvim/spellsuggest.c2
1 files changed, 1 insertions, 1 deletions
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