changeset 13107:fe7d576a3d3f v8.0.1428

patch 8.0.1428: compiler warning on 64 bit MS-Windows system commit https://github.com/vim/vim/commit/200ea8ffaa90e1ccc156b24ee097be87acdd5214 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 2 15:37:46 2018 +0100 patch 8.0.1428: compiler warning on 64 bit MS-Windows system Problem: Compiler warning on 64 bit MS-Windows system. Solution: Change type from "int" to "size_t". (Mike Williams)
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Jan 2018 15:45:06 +0100
parents 50a2bb503137
children ece995ea03df
files src/ex_getln.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -180,7 +180,7 @@ abandon_cmdline(void)
     static int
 empty_pattern(char_u *p)
 {
-    int n = STRLEN(p);
+    size_t n = STRLEN(p);
 
     /* remove trailing \v and the like */
     while (n >= 2 && p[n - 2] == '\\'
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1428,
+/**/
     1427,
 /**/
     1426,