changeset 19061:5a62b4a0c961 v8.2.0091

patch 8.2.0091: compiler warnings for size_t / int types Commit: https://github.com/vim/vim/commit/4d7a248b644b647340ed1a25729e2ed586a54864 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 6 19:53:43 2020 +0100 patch 8.2.0091: compiler warnings for size_t / int types Problem: Compiler warnings for size_t / int types. Solution: Change type to size_t. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 Jan 2020 20:00:06 +0100
parents 1bb31d1b3e66
children 1eefc5cb7f1a
files src/scriptfile.c src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 ");
--- 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,