diff src/ex_getln.c @ 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 669c4f75a69e
children 59a16624400a
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] == '\\'