commit | 1a804528ab39f5c810cf42397702057100a94ade | [log] [tgz] |
---|---|---|
author | K.Takata <kentkt@csc.jp> | Wed Jan 26 16:45:20 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jan 26 16:45:20 2022 +0000 |
tree | ce84923d37f822bcbd52deb896c578f146c059f5 | |
parent | 47d1666d605998a97d3827eca4d467ad0930b284 [diff] [blame] |
patch 8.2.4223: long/int compiler warnings; function arguments swapped Problem: Long/int compiler warnings; function arguments swapped. Solution: Add type casts. Swap arguments. (Ken Takata, closes #9632)
diff --git a/src/alloc.c b/src/alloc.c index e3cd857..47a099f 100644 --- a/src/alloc.c +++ b/src/alloc.c
@@ -705,7 +705,7 @@ ga_init2(garray_T *gap, size_t itemsize, int growsize) { ga_init(gap); - gap->ga_itemsize = itemsize; + gap->ga_itemsize = (int)itemsize; gap->ga_growsize = growsize; }