refactor: fix sign conversion warning from gcc (#21833)

This commit is contained in:
dundargoc 2023-01-17 00:43:04 +01:00 committed by GitHub
parent 7ebb1cf28f
commit 2302ca4700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1364,7 +1364,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char *fword, bool soun
== sp->ts_twordlen - sp->ts_splitoff
&& strncmp(fword + sp->ts_splitfidx,
tword + sp->ts_splitoff,
sp->ts_fidx - sp->ts_splitfidx) == 0) {
(size_t)(sp->ts_fidx - sp->ts_splitfidx)) == 0) {
preword[sp->ts_prewordlen] = NUL;
newscore = score_wordcount_adj(slang, sp->ts_score,
(char_u *)preword + sp->ts_prewordlen,