0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

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)
This commit is contained in:
K.Takata 2022-01-26 16:45:20 +00:00 committed by Bram Moolenaar
parent 47d1666d60
commit 1a804528ab
4 changed files with 5 additions and 3 deletions

View File

@ -705,7 +705,7 @@ ga_init(garray_T *gap)
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;
}

View File

@ -4089,7 +4089,7 @@ eval_method(
else
{
name = deref;
len = STRLEN(name);
len = (long)STRLEN(name);
}
*paren = '(';
}

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4223,
/**/
4222,
/**/

View File

@ -587,7 +587,7 @@ handle_import(
{
imported_T *imported;
imported = find_imported(as_name, FALSE, STRLEN(as_name), cctx);
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);