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/arglist.c b/src/arglist.c
index 3ca5e4c..fbd99af 100644
--- a/src/arglist.c
+++ b/src/arglist.c
@@ -51,7 +51,7 @@
void
alist_init(alist_T *al)
{
- ga_init2(&al->al_ga, (int)sizeof(aentry_T), 5);
+ ga_init2(&al->al_ga, sizeof(aentry_T), 5);
}
/*
@@ -275,7 +275,7 @@
static int
get_arglist(garray_T *gap, char_u *str, int escaped)
{
- ga_init2(gap, (int)sizeof(char_u *), 20);
+ ga_init2(gap, sizeof(char_u *), 20);
while (*str != NUL)
{
if (ga_grow(gap, 1) == FAIL)