]> granicus.if.org Git - vim/commitdiff
patch 8.0.1428: compiler warning on 64 bit MS-Windows system v8.0.1428
authorBram Moolenaar <Bram@vim.org>
Tue, 2 Jan 2018 14:37:46 +0000 (15:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 2 Jan 2018 14:37:46 +0000 (15:37 +0100)
Problem:    Compiler warning on 64 bit MS-Windows system.
Solution:   Change type from "int" to "size_t". (Mike Williams)

src/ex_getln.c
src/version.c

index 2a2b08ba2e27c9bc048f7466ed9a8a950d0bd42f..421c6b7d58f06b7ffa0c7e5752f348543e59d63b 100644 (file)
@@ -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] == '\\'
index 15aec195fbfee76d0d622542952945d39e9ecacd..2bfb86c24e5fc5a98d450097d6b1fb90b0311e87 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1428,
 /**/
     1427,
 /**/