0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.1626: compiler warning for possible loss of data

Problem:    Compiler warning for possible loss of data.
Solution:   Use size_t instead of int. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2018-03-21 22:27:59 +01:00
parent 29dfa5af3c
commit b571c63d48
2 changed files with 4 additions and 2 deletions

View File

@@ -3773,9 +3773,9 @@ term_load_dump(typval_T *argvars, typval_T *rettv, int do_diff)
if (opt.jo_term_name == NULL)
{
int len = STRLEN(fname1) + 12;
size_t len = STRLEN(fname1) + 12;
fname_tofree = alloc(len);
fname_tofree = alloc((int)len);
if (fname_tofree != NULL)
{
vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1);

View File

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