comparison src/vim9execute.c @ 23695:e3d77689d356 v8.2.2389

patch 8.2.2389: test failure on a few systems Commit: https://github.com/vim/vim/commit/9b6344613eecfcf77c510d7b63fcc4b7b51aefbc Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 21 22:53:38 2021 +0100 patch 8.2.2389: test failure on a few systems Problem: Test failure on a few systems. Solution: Avoid that "char" value is negative.
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Jan 2021 23:00:05 +0100
parents 0d56d4f107d8
children 19073a768852
comparison
equal deleted inserted replaced
23694:7d29116429d0 23695:e3d77689d356
3238 3238
3239 case ISN_CHECKTYPE: 3239 case ISN_CHECKTYPE:
3240 { 3240 {
3241 checktype_T *ct = &iptr->isn_arg.type; 3241 checktype_T *ct = &iptr->isn_arg.type;
3242 3242
3243 tv = STACK_TV_BOT(ct->ct_off); 3243 tv = STACK_TV_BOT(-(int)ct->ct_off);
3244 SOURCING_LNUM = iptr->isn_lnum; 3244 SOURCING_LNUM = iptr->isn_lnum;
3245 if (check_typval_type(ct->ct_type, tv, ct->ct_arg_idx) 3245 if (check_typval_type(ct->ct_type, tv, ct->ct_arg_idx)
3246 == FAIL) 3246 == FAIL)
3247 goto on_error; 3247 goto on_error;
3248 3248
4240 char *tofree; 4240 char *tofree;
4241 4241
4242 if (ct->ct_arg_idx == 0) 4242 if (ct->ct_arg_idx == 0)
4243 smsg("%4d CHECKTYPE %s stack[%d]", current, 4243 smsg("%4d CHECKTYPE %s stack[%d]", current,
4244 type_name(ct->ct_type, &tofree), 4244 type_name(ct->ct_type, &tofree),
4245 (int)ct->ct_off); 4245 -(int)ct->ct_off);
4246 else 4246 else
4247 smsg("%4d CHECKTYPE %s stack[%d] arg %d", current, 4247 smsg("%4d CHECKTYPE %s stack[%d] arg %d", current,
4248 type_name(ct->ct_type, &tofree), 4248 type_name(ct->ct_type, &tofree),
4249 (int)ct->ct_off, 4249 -(int)ct->ct_off,
4250 (int)ct->ct_arg_idx); 4250 (int)ct->ct_arg_idx);
4251 vim_free(tofree); 4251 vim_free(tofree);
4252 break; 4252 break;
4253 } 4253 }
4254 case ISN_CHECKLEN: smsg("%4d CHECKLEN %s%d", current, 4254 case ISN_CHECKLEN: smsg("%4d CHECKLEN %s%d", current,