changeset 9248:9c751c33dc0f v7.4.1907

commit https://github.com/vim/vim/commit/1d5f1d07aedb6f149f5de145b1dfd6528a769c93 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 7 22:50:01 2016 +0200 patch 7.4.1907 Problem: Warnings from 64 bit compiler. Solution: Change type to size_t. (Mike Williams)
author Christian Brabandt <cb@256bit.org>
date Tue, 07 Jun 2016 23:00:06 +0200
parents ae51b358cb0f
children 1df574290be4
files src/ex_cmds.c src/version.c
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -2574,9 +2574,9 @@ barline_parse(vir_T *virp, char_u *text,
 
 	    if (vim_isdigit(p[1]))
 	    {
-		int len;
-		int todo;
-		int n;
+		size_t len;
+		size_t todo;
+		size_t n;
 
 		/* String value was split into lines that are each shorter
 		 * than LSIZE:
@@ -2586,7 +2586,7 @@ barline_parse(vir_T *virp, char_u *text,
 		 */
 		++p;
 		len = getdigits(&p);
-		buf = alloc(len + 1);
+		buf = alloc((int)(len + 1));
 		p = buf;
 		for (todo = len; todo > 0; todo -= n)
 		{
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1907,
+/**/
     1906,
 /**/
     1905,