patch 8.2.4043: using int for second argument of ga_init2()
Problem: Using int for second argument of ga_init2().
Solution: Remove unnessary type cast (int) when using sizeof().
diff --git a/src/spellsuggest.c b/src/spellsuggest.c
index e9f2cd5..b2b4029 100644
--- a/src/spellsuggest.c
+++ b/src/spellsuggest.c
@@ -774,8 +774,8 @@
// Set the info in "*su".
CLEAR_POINTER(su);
- ga_init2(&su->su_ga, (int)sizeof(suggest_T), 10);
- ga_init2(&su->su_sga, (int)sizeof(suggest_T), 10);
+ ga_init2(&su->su_ga, sizeof(suggest_T), 10);
+ ga_init2(&su->su_sga, sizeof(suggest_T), 10);
if (*badptr == NUL)
return;
hash_init(&su->su_banned);
@@ -2943,7 +2943,7 @@
check_suggestions(su, &su->su_sga);
(void)cleanup_suggestions(&su->su_sga, su->su_maxscore, su->su_maxcount);
- ga_init2(&ga, (int)sizeof(suginfo_T), 1);
+ ga_init2(&ga, sizeof(suginfo_T), 1);
if (ga_grow(&ga, su->su_ga.ga_len + su->su_sga.ga_len) == FAIL)
return;