Problem: Vim doesn't build cleanly with MSVC 2010.
Solution: Change a few types. (George Reilly)
char_u *arg;
{
char_u *end_subcmd;
- int len;
/* Default: expand subcommands. */
xp->xp_context = EXPAND_PROFILE;
if (*end_subcmd == NUL)
return;
- len = end_subcmd - arg;
- if (len == 5 && STRNCMP(arg, "start", 5) == 0)
+ if (end_subcmd - arg == 5 && STRNCMP(arg, "start", 5) == 0)
{
xp->xp_context = EXPAND_FILES;
xp->xp_pattern = skipwhite(end_subcmd);
return -1;
/* 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)
col = len;
{
/* a "\n" at the end of the pattern may take us below the last line */
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)
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 383,
/**/
382,
/**/