diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-02 12:45:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-02 12:45:45 +0100 |
commit | 38a434f7ba89ab2602019476219780e07fd8251f (patch) | |
tree | b3c1f425b5801726ade9a5c5a6dcc9fd71916fda | |
parent | edc10b541b468f5f5aa2e2d5ef58a3e17e043bff (diff) | |
download | vim-git-38a434f7ba89ab2602019476219780e07fd8251f.tar.gz |
patch 8.2.2270: warning for size_t to int conversionv8.2.2270
Problem: Warning for size_t to int conversion. (Randall W. Morris)
Solution: Add a type cast.
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9execute.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c index 25d464ba4..c1e79864a 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2270, +/**/ 2269, /**/ 2268, diff --git a/src/vim9execute.c b/src/vim9execute.c index b389891df..5721c0e72 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -1526,7 +1526,7 @@ call_def_function( if (GA_GROW(&ectx.ec_stack, 1) == FAIL) goto failed; SOURCING_LNUM = iptr->isn_lnum; - if (eval_variable(name, STRLEN(name), + if (eval_variable(name, (int)STRLEN(name), STACK_TV_BOT(0), NULL, TRUE, FALSE) == FAIL) goto on_error; ++ectx.ec_stack.ga_len; |