Skip to content
Permalink
Browse files

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)
  • Loading branch information
brammool committed Mar 21, 2018
1 parent 29dfa5a commit b571c63d481b065dc22465300e41a4b8cff66120
Showing with 4 additions and 2 deletions.
  1. +2 −2 src/terminal.c
  2. +2 −0 src/version.c
@@ -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);
@@ -766,6 +766,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1626,
/**/
1625,
/**/

0 comments on commit b571c63

Please sign in to comment.
You can’t perform that action at this time.