diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-21 22:53:38 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-21 22:53:38 +0100 |
commit | 9b6344613eecfcf77c510d7b63fcc4b7b51aefbc (patch) | |
tree | de908c507c80ae09e879f347913cb50b6116fb27 /src/vim9execute.c | |
parent | 57d5a01cb45d6edb16c3835a49b42d6d8fc0163e (diff) | |
download | vim-git-9b6344613eecfcf77c510d7b63fcc4b7b51aefbc.tar.gz |
patch 8.2.2389: test failure on a few systemsv8.2.2389
Problem: Test failure on a few systems.
Solution: Avoid that "char" value is negative.
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r-- | src/vim9execute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c index 7d1d079bb..b5f4be34e 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -3240,7 +3240,7 @@ call_def_function( { checktype_T *ct = &iptr->isn_arg.type; - tv = STACK_TV_BOT(ct->ct_off); + tv = STACK_TV_BOT(-(int)ct->ct_off); SOURCING_LNUM = iptr->isn_lnum; if (check_typval_type(ct->ct_type, tv, ct->ct_arg_idx) == FAIL) @@ -4242,11 +4242,11 @@ ex_disassemble(exarg_T *eap) if (ct->ct_arg_idx == 0) smsg("%4d CHECKTYPE %s stack[%d]", current, type_name(ct->ct_type, &tofree), - (int)ct->ct_off); + -(int)ct->ct_off); else smsg("%4d CHECKTYPE %s stack[%d] arg %d", current, type_name(ct->ct_type, &tofree), - (int)ct->ct_off, + -(int)ct->ct_off, (int)ct->ct_arg_idx); vim_free(tofree); break; |