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/window.c b/src/window.c index 4a17c62..6d5d0a4 100644 --- a/src/window.c +++ b/src/window.c
@@ -5413,7 +5413,7 @@ { win_T *wp; - ga_init2(gap, (int)sizeof(int), 1); + ga_init2(gap, sizeof(int), 1); if (ga_grow(gap, win_count() * 2 + 1) == OK) { // first entry is value of 'lines'