diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-08 16:19:22 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-08 16:19:22 +0000 |
commit | 04935fb17e5f0f66b82cf4546b9752d3d1fa650e (patch) | |
tree | d80c59d316f2f17a27a6541a8eb40d01cc49eca8 /src/arglist.c | |
parent | 143367256836b0f69881dc0c65ff165ae091dbc5 (diff) |
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/arglist.c')
-rw-r--r-- | src/arglist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arglist.c b/src/arglist.c index 3ca5e4ccce..fbd99af0d3 100644 --- a/src/arglist.c +++ b/src/arglist.c @@ -51,7 +51,7 @@ alist_clear(alist_T *al) 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 @@ do_one_arg(char_u *str) 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) |