To: vim_dev@googlegroups.com Subject: Patch 8.2.4223 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4223 Problem: Long/int compiler warnings; function arguments swapped. Solution: Add type casts. Swap arguments. (Ken Takata, closes #9632) Files: src/alloc.c, src/eval.c, src/vim9script.c *** ../vim-8.2.4222/src/alloc.c 2022-01-08 15:39:35.410385289 +0000 --- src/alloc.c 2022-01-26 16:43:46.044272351 +0000 *************** *** 705,711 **** ga_init2(garray_T *gap, size_t itemsize, int growsize) { ga_init(gap); ! gap->ga_itemsize = itemsize; gap->ga_growsize = growsize; } --- 705,711 ---- ga_init2(garray_T *gap, size_t itemsize, int growsize) { ga_init(gap); ! gap->ga_itemsize = (int)itemsize; gap->ga_growsize = growsize; } *** ../vim-8.2.4222/src/eval.c 2022-01-24 18:36:34.470382930 +0000 --- src/eval.c 2022-01-26 16:43:46.048272274 +0000 *************** *** 4089,4095 **** else { name = deref; ! len = STRLEN(name); } *paren = '('; } --- 4089,4095 ---- else { name = deref; ! len = (long)STRLEN(name); } *paren = '('; } *** ../vim-8.2.4222/src/vim9script.c 2022-01-18 17:43:01.061598437 +0000 --- src/vim9script.c 2022-01-26 16:43:46.048272274 +0000 *************** *** 587,593 **** { imported_T *imported; ! imported = find_imported(as_name, FALSE, STRLEN(as_name), cctx); if (imported != NULL && imported->imp_sid != sid) { semsg(_(e_name_already_defined_str), as_name); --- 587,593 ---- { imported_T *imported; ! imported = find_imported(as_name, STRLEN(as_name), FALSE, cctx); if (imported != NULL && imported->imp_sid != sid) { semsg(_(e_name_already_defined_str), as_name); *** ../vim-8.2.4222/src/version.c 2022-01-26 16:20:18.067215753 +0000 --- src/version.c 2022-01-26 16:45:03.838761153 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4223, /**/ -- ARTHUR: If you do not open these doors, we will take this castle by force ... [A bucket of slops land on ARTHUR. He tries to retain his dignity.] "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///