commit | 04935fb17e5f0f66b82cf4546b9752d3d1fa650e | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jan 08 16:19:22 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jan 08 16:19:22 2022 +0000 |
tree | d80c59d316f2f17a27a6541a8eb40d01cc49eca8 | |
parent | 143367256836b0f69881dc0c65ff165ae091dbc5 [diff] [blame] |
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/usercmd.c b/src/usercmd.c index 40790a1..2830a50 100644 --- a/src/usercmd.c +++ b/src/usercmd.c
@@ -917,7 +917,7 @@ { 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;