1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar 2018-01-02 15:37:46 +01:00
parent de04654ddc
commit 200ea8ffaa
2 changed files with 3 additions and 1 deletions

View 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] == '\\'

View File

@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1428,
/**/
1427,
/**/