summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2022-01-26 16:45:20 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-26 16:45:20 +0000
commit1a804528ab39f5c810cf42397702057100a94ade (patch)
treece84923d37f822bcbd52deb896c578f146c059f5 /src
parent47d1666d605998a97d3827eca4d467ad0930b284 (diff)
patch 8.2.4223: long/int compiler warnings; function arguments swappedv8.2.4223
Problem: Long/int compiler warnings; function arguments swapped. Solution: Add type casts. Swap arguments. (Ken Takata, closes #9632)
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c2
-rw-r--r--src/eval.c2
-rw-r--r--src/version.c2
-rw-r--r--src/vim9script.c2
4 files changed, 5 insertions, 3 deletions
diff --git a/src/alloc.c b/src/alloc.c
index e3cd8578f6..47a099fbf1 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -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;
}
diff --git a/src/eval.c b/src/eval.c
index 9d4079d455..72b1d6c974 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -4089,7 +4089,7 @@ eval_method(
else
{
name = deref;
- len = STRLEN(name);
+ len = (long)STRLEN(name);
}
*paren = '(';
}
diff --git a/src/version.c b/src/version.c
index db051aa27b..e6f8b3a09b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4223,
+/**/
4222,
/**/
4221,
diff --git a/src/vim9script.c b/src/vim9script.c
index e13ac4ac47..5c1c055668 100644
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -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);