mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
fix(spell): fix wrong cast
Fix #20787
(cherry picked from commit 0b2ef98594
)
This commit is contained in:
parent
c34ebe60be
commit
7aaa0f4888
@ -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++;
|
ftp = (fromto_T *)gap->ga_data + sp->ts_curi++;
|
||||||
if (*ftp->ft_from != *p) {
|
if (*ftp->ft_from != *p) {
|
||||||
// past possible matching entries
|
// past possible matching entries
|
||||||
sp->ts_curi = (char_u)gap->ga_len;
|
sp->ts_curi = (int16_t)gap->ga_len;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (STRNCMP(ftp->ft_from, p, STRLEN(ftp->ft_from)) == 0
|
if (STRNCMP(ftp->ft_from, p, STRLEN(ftp->ft_from)) == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user