comparison src/vim9execute.c @ 23697:19073a768852 v8.2.2390

patch 8.2.2390: Vim9: using positive offset is unexpected Commit: https://github.com/vim/vim/commit/b3005ce191d27fd2f234df4969d5b58fda9c1940 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 22 17:51:06 2021 +0100 patch 8.2.2390: Vim9: using positive offset is unexpected Problem: Vim9: using positive offset is unexpected. Solution: Use int8_T instead of char. (James McCoy)
author Bram Moolenaar <Bram@vim.org>
date Fri, 22 Jan 2021 18:00:05 +0100
parents e3d77689d356
children 317018f62643
comparison
equal deleted inserted replaced
23696:c0a8837e86cb 23697:19073a768852
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(-(int)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,