Mercurial > vim
diff src/terminal.c @ 13505:a784ef72b617 v8.0.1626
patch 8.0.1626: compiler warning for possible loss of data
commit https://github.com/vim/vim/commit/b571c63d481b065dc22465300e41a4b8cff66120
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 21 Mar 2018 22:30:06 +0100 |
parents | a4a559e08798 |
children | d0d66898e98b |
line wrap: on
line diff
--- 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);