# HG changeset patch # User Christian Brabandt # Date 1521667806 -3600 # Node ID a784ef72b6177fa8abbe72193917189c1708069a # Parent 0414a701eed90c75a794189d46157240645cd667 patch 8.0.1626: compiler warning for possible loss of data commit https://github.com/vim/vim/commit/b571c63d481b065dc22465300e41a4b8cff66120 Author: Bram Moolenaar Date: Wed Mar 21 22:27:59 2018 +0100 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 --- a/src/terminal.c +++ b/src/terminal.c @@ -3773,9 +3773,9 @@ term_load_dump(typval_T *argvars, typval if (opt.jo_term_name == NULL) { - int len = STRLEN(fname1) + 12; - - fname_tofree = alloc(len); + size_t len = STRLEN(fname1) + 12; + + 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 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1626, +/**/ 1625, /**/ 1624,