From: Bram Moolenaar Date: Wed, 21 Mar 2018 21:27:59 +0000 (+0100) Subject: patch 8.0.1626: compiler warning for possible loss of data X-Git-Tag: v8.0.1626 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b571c63d481b065dc22465300e41a4b8cff66120;p=vim 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) --- diff --git a/src/terminal.c b/src/terminal.c index 0d035ff96..18da71025 100644 --- a/src/terminal.c +++ b/src/terminal.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); diff --git a/src/version.c b/src/version.c index 3c57f0a54..e4878d6af 100644 --- a/src/version.c +++ b/src/version.c @@ -766,6 +766,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1626, /**/ 1625, /**/