changeset 13505:a784ef72b617 v8.0.1626

patch 8.0.1626: compiler warning for possible loss of data commit https://github.com/vim/vim/commit/b571c63d481b065dc22465300e41a4b8cff66120 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 21 22:27:59 2018 +0100 patch 8.0.1626: compiler warning for possible loss of data Problem: Compiler warning for possible loss of data. Solution: Use size_t instead of int. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Wed, 21 Mar 2018 22:30:06 +0100
parents 0414a701eed9
children cb955e703d3a
files src/terminal.c src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -3773,9 +3773,9 @@ term_load_dump(typval_T *argvars, typval
 
     if (opt.jo_term_name == NULL)
     {
-	int len = STRLEN(fname1) + 12;
-
-	fname_tofree = alloc(len);
+	size_t len = STRLEN(fname1) + 12;
+
+	fname_tofree = alloc((int)len);
 	if (fname_tofree != NULL)
 	{
 	    vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1);
--- a/src/version.c
+++ b/src/version.c
@@ -767,6 +767,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1626,
+/**/
     1625,
 /**/
     1624,