Mercurial > vim
diff src/vim9execute.c @ 23650:83a69ada0274 v8.2.2367
patch 8.2.2367: test failures on some less often used systems
Commit: https://github.com/vim/vim/commit/239f8d932672bcf5be6d32fc7c0bf95a2e69f5eb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 17 13:21:20 2021 +0100
patch 8.2.2367: test failures on some less often used systems
Problem: Test failures on some less often used systems.
Solution: Adjust printf formats and types. (James McCoy, closes https://github.com/vim/vim/issues/7691)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Jan 2021 13:30:05 +0100 |
parents | b26bbc03126a |
children | c6f7df86cd9d |
line wrap: on
line diff
--- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -1935,8 +1935,8 @@ call_def_function( if (status == OK && dest_type == VAR_LIST) { - varnumber_T lidx = tv_idx->vval.v_number; - list_T *list = tv_dest->vval.v_list; + long lidx = (long)tv_idx->vval.v_number; + list_T *list = tv_dest->vval.v_list; if (list == NULL) { @@ -2121,7 +2121,7 @@ call_def_function( else { list_T *l = tv_dest->vval.v_list; - varnumber_T n = tv_idx->vval.v_number; + long n = (long)tv_idx->vval.v_number; listitem_T *li = NULL; li = list_find(l, n);