summaryrefslogtreecommitdiff
path: root/src/scriptfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-08 16:19:22 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-08 16:19:22 +0000
commit04935fb17e5f0f66b82cf4546b9752d3d1fa650e (patch)
treed80c59d316f2f17a27a6541a8eb40d01cc49eca8 /src/scriptfile.c
parent143367256836b0f69881dc0c65ff165ae091dbc5 (diff)
downloadvim-git-04935fb17e5f0f66b82cf4546b9752d3d1fa650e.tar.gz
patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043
Problem: Using int for second argument of ga_init2(). Solution: Remove unnessary type cast (int) when using sizeof().
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r--src/scriptfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c
index 8fb3cae01..c10a82f2c 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -835,7 +835,7 @@ ExpandRTDir(
*num_file = 0;
*file = NULL;
pat_len = (int)STRLEN(pat);
- ga_init2(&ga, (int)sizeof(char *), 10);
+ ga_init2(&ga, sizeof(char *), 10);
for (i = 0; dirnames[i] != NULL; ++i)
{
@@ -929,7 +929,7 @@ ExpandPackAddDir(
*num_file = 0;
*file = NULL;
pat_len = (int)STRLEN(pat);
- ga_init2(&ga, (int)sizeof(char *), 10);
+ ga_init2(&ga, sizeof(char *), 10);
s = alloc(pat_len + 26);
if (s == NULL)
@@ -1833,7 +1833,7 @@ getsourceline(
{
garray_T ga;
- ga_init2(&ga, (int)sizeof(char_u), 400);
+ ga_init2(&ga, sizeof(char_u), 400);
ga_concat(&ga, line);
if (*p == '\\')
ga_concat(&ga, p + 1);