1
0
forked from aniani/vim

updated for version 7.2.383

Problem:    Vim doesn't build cleanly with MSVC 2010.
Solution:   Change a few types. (George Reilly)
This commit is contained in:
Bram Moolenaar
2010-03-02 17:54:33 +01:00
parent 8006d69d3c
commit 8b9c05fa54
4 changed files with 5 additions and 5 deletions

View File

@@ -1165,7 +1165,6 @@ set_context_in_profile_cmd(xp, arg)
char_u *arg; char_u *arg;
{ {
char_u *end_subcmd; char_u *end_subcmd;
int len;
/* Default: expand subcommands. */ /* Default: expand subcommands. */
xp->xp_context = EXPAND_PROFILE; xp->xp_context = EXPAND_PROFILE;
@@ -1176,8 +1175,7 @@ set_context_in_profile_cmd(xp, arg)
if (*end_subcmd == NUL) if (*end_subcmd == NUL)
return; return;
len = end_subcmd - arg; if (end_subcmd - arg == 5 && STRNCMP(arg, "start", 5) == 0)
if (len == 5 && STRNCMP(arg, "start", 5) == 0)
{ {
xp->xp_context = EXPAND_FILES; xp->xp_context = EXPAND_FILES;
xp->xp_pattern = skipwhite(end_subcmd); xp->xp_pattern = skipwhite(end_subcmd);

View File

@@ -2080,7 +2080,7 @@ WindowSetattr(PyObject *self, char *name, PyObject *val)
return -1; return -1;
/* When column is out of range silently correct it. */ /* When column is out of range silently correct it. */
len = STRLEN(ml_get_buf(this->win->w_buffer, lnum, FALSE)); len = (long)STRLEN(ml_get_buf(this->win->w_buffer, lnum, FALSE));
if (col > len) if (col > len)
col = len; col = len;

View File

@@ -3090,7 +3090,7 @@ syn_add_start_off(result, regmatch, spp, idx, extra)
{ {
/* a "\n" at the end of the pattern may take us below the last line */ /* a "\n" at the end of the pattern may take us below the last line */
result->lnum = syn_buf->b_ml.ml_line_count; result->lnum = syn_buf->b_ml.ml_line_count;
col = STRLEN(ml_get_buf(syn_buf, result->lnum, FALSE)); col = (int)STRLEN(ml_get_buf(syn_buf, result->lnum, FALSE));
} }
if (off != 0) if (off != 0)
{ {

View File

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