comparison 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
comparison
equal deleted inserted replaced
23649:fb80a74c1069 23650:83a69ada0274
1933 status = FAIL; 1933 status = FAIL;
1934 } 1934 }
1935 1935
1936 if (status == OK && dest_type == VAR_LIST) 1936 if (status == OK && dest_type == VAR_LIST)
1937 { 1937 {
1938 varnumber_T lidx = tv_idx->vval.v_number; 1938 long lidx = (long)tv_idx->vval.v_number;
1939 list_T *list = tv_dest->vval.v_list; 1939 list_T *list = tv_dest->vval.v_list;
1940 1940
1941 if (list == NULL) 1941 if (list == NULL)
1942 { 1942 {
1943 emsg(_(e_list_not_set)); 1943 emsg(_(e_list_not_set));
1944 goto on_error; 1944 goto on_error;
2119 status = FAIL; 2119 status = FAIL;
2120 } 2120 }
2121 else 2121 else
2122 { 2122 {
2123 list_T *l = tv_dest->vval.v_list; 2123 list_T *l = tv_dest->vval.v_list;
2124 varnumber_T n = tv_idx->vval.v_number; 2124 long n = (long)tv_idx->vval.v_number;
2125 listitem_T *li = NULL; 2125 listitem_T *li = NULL;
2126 2126
2127 li = list_find(l, n); 2127 li = list_find(l, n);
2128 if (li == NULL) 2128 if (li == NULL)
2129 { 2129 {