summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-06 19:53:43 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-06 19:53:43 +0100
commit4d7a248b644b647340ed1a25729e2ed586a54864 (patch)
treeaefe96b4d600664945c828c7c0b44e851a4e3ca7
parentb376ace1aeaa7614debc725487d75c8f756dd773 (diff)
downloadvim-git-4d7a248b644b647340ed1a25729e2ed586a54864.tar.gz
patch 8.2.0091: compiler warnings for size_t / int typesv8.2.0091
Problem: Compiler warnings for size_t / int types. Solution: Change type to size_t. (Mike Williams)
-rw-r--r--src/scriptfile.c6
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c
index 783e6bc75..38516c360 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -97,10 +97,10 @@ estack_sfile(void)
{
estack_T *entry;
#ifdef FEAT_EVAL
- int len;
+ size_t len;
int idx;
char *res;
- int done;
+ size_t done;
#endif
entry = ((estack_T *)exestack.ga_data) + exestack.ga_len - 1;
@@ -126,7 +126,7 @@ estack_sfile(void)
len += STRLEN(entry->es_name) + 15;
}
- res = (char *)alloc(len);
+ res = (char *)alloc((int)len);
if (res != NULL)
{
STRCPY(res, "function ");
diff --git a/src/version.c b/src/version.c
index 43300cbec..d235ae7a4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 91,
+/**/
90,
/**/
89,