win: fix warnings

This commit is contained in:
Justin M. Keyes
2017-01-13 07:40:49 +01:00
parent e40946a5be
commit 32c7971b2a
4 changed files with 9 additions and 5 deletions

View File

@@ -173,9 +173,8 @@ static char_u *skip_string(char_u *p)
char_u *delim = p + 2;
char_u *paren = vim_strchr(delim, '(');
if (paren != NULL)
{
long delim_len = paren - delim;
if (paren != NULL) {
ptrdiff_t delim_len = paren - delim;
for (p += 3; *p; ++p)
if (p[0] == ')' && STRNCMP(p + 1, delim, delim_len) == 0