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:
parent
47d1666d60
commit
1a804528ab
@ -705,7 +705,7 @@ ga_init(garray_T *gap)
|
|||||||
ga_init2(garray_T *gap, size_t itemsize, int growsize)
|
ga_init2(garray_T *gap, size_t itemsize, int growsize)
|
||||||
{
|
{
|
||||||
ga_init(gap);
|
ga_init(gap);
|
||||||
gap->ga_itemsize = itemsize;
|
gap->ga_itemsize = (int)itemsize;
|
||||||
gap->ga_growsize = growsize;
|
gap->ga_growsize = growsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4089,7 +4089,7 @@ eval_method(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
name = deref;
|
name = deref;
|
||||||
len = STRLEN(name);
|
len = (long)STRLEN(name);
|
||||||
}
|
}
|
||||||
*paren = '(';
|
*paren = '(';
|
||||||
}
|
}
|
||||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4223,
|
||||||
/**/
|
/**/
|
||||||
4222,
|
4222,
|
||||||
/**/
|
/**/
|
||||||
|
@ -587,7 +587,7 @@ handle_import(
|
|||||||
{
|
{
|
||||||
imported_T *imported;
|
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)
|
if (imported != NULL && imported->imp_sid != sid)
|
||||||
{
|
{
|
||||||
semsg(_(e_name_already_defined_str), as_name);
|
semsg(_(e_name_already_defined_str), as_name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user