patch 9.0.0635: build error and compiler warnings

Problem:    Build error and compiler warnings.
Solution:   Add missing change.  Add type casts.
This commit is contained in:
Bram Moolenaar
2022-10-01 20:17:17 +01:00
parent a4e0b9785e
commit 3292a22940
3 changed files with 5 additions and 3 deletions

View File

@ -961,12 +961,12 @@ err_closing:
#endif
if (csinfo[i].ppath != NULL)
{
len = STRLEN(cmd);
len = (int)STRLEN(cmd);
vim_snprintf(cmd + len, cmdlen - len, " -P%s", csinfo[i].ppath);
}
if (csinfo[i].flags != NULL)
{
len = STRLEN(cmd);
len = (int)STRLEN(cmd);
vim_snprintf(cmd + len, cmdlen - len, " %s", csinfo[i].flags);
}
# ifdef UNIX

View File

@ -1906,7 +1906,7 @@ get_expr_indent(void)
inde_copy = vim_strsave(curbuf->b_p_inde);
if (inde_copy != NULL)
{
indent = (int)eval_to_number(inde_copy);
indent = (int)eval_to_number(inde_copy, TRUE);
vim_free(inde_copy);
}

View File

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