summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-30 20:21:43 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-30 20:21:43 +0200
commit7f6f56f43c48f0b7288a4edd12b59fa7335f01d3 (patch)
tree2110dfd91f86d0a1b6ef6c5d1b4f66cb67b8b996
parent2c5c1638a9fe2ef34f2fd09ed69e10ef2e821f0a (diff)
downloadvim-git-7f6f56f43c48f0b7288a4edd12b59fa7335f01d3.tar.gz
patch 8.2.0668: compiler warning for int/size_t usagev8.2.0668
Problem: Compiler warning for int/size_t usage. Solution: Change "int" to "size_t". (Mike Williams)
-rw-r--r--src/version.c2
-rw-r--r--src/vim9execute.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index c57ef8715..7382a3dbd 100644
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 668,
+/**/
667,
/**/
666,
diff --git a/src/vim9execute.c b/src/vim9execute.c
index 5251d4848..3cb8628c5 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -653,7 +653,7 @@ call_def_function(
case ISN_EXECCONCAT:
{
int count = iptr->isn_arg.number;
- int len = 0;
+ size_t len = 0;
int pass;
int i;
char_u *cmd = NULL;