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/findfile.c b/src/findfile.c
index 230f487..110e06b 100644
--- a/src/findfile.c
+++ b/src/findfile.c
@@ -2430,7 +2430,7 @@
char_u *short_name;
remove_duplicates(gap);
- ga_init2(&path_ga, (int)sizeof(char_u *), 1);
+ ga_init2(&path_ga, sizeof(char_u *), 1);
/*
* We need to prepend a '*' at the beginning of file_pattern so that the
@@ -2611,7 +2611,7 @@
return 0;
mch_dirname(curdir, MAXPATHL);
- ga_init2(&path_ga, (int)sizeof(char_u *), 1);
+ ga_init2(&path_ga, sizeof(char_u *), 1);
expand_path_option(curdir, &path_ga);
vim_free(curdir);
if (path_ga.ga_len == 0)