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/usercmd.c | |
parent | 143367256836b0f69881dc0c65ff165ae091dbc5 (diff) | |
download | vim-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/usercmd.c')
-rw-r--r-- | src/usercmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usercmd.c b/src/usercmd.c index 40790a1f5..2830a5038 100644 --- a/src/usercmd.c +++ b/src/usercmd.c @@ -917,7 +917,7 @@ uc_add_command( { gap = &curbuf->b_ucmds; if (gap->ga_itemsize == 0) - ga_init2(gap, (int)sizeof(ucmd_T), 4); + ga_init2(gap, sizeof(ucmd_T), 4); } else gap = &ucmds; |