Mercurial > vim
diff src/vim9compile.c @ 19597:1098989a90ee v8.2.0355
patch 8.2.0355: Vim9: str_val is confusing, it's a number
Commit: https://github.com/vim/vim/commit/a471eeae75cda982bb6ddffbb0cbb71d868b97bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 4 22:20:26 2020 +0100
patch 8.2.0355: Vim9: str_val is confusing, it's a number
Problem: Vim9: str_val is confusing, it's a number
Solution: Rename to stnr_val.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Mar 2020 22:30:04 +0100 |
parents | e61dc51ab9b4 |
children | 2fee087c94cb |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -773,8 +773,8 @@ generate_STORENR(cctx_T *cctx, int idx, RETURN_OK_IF_SKIP(cctx); if ((isn = generate_instr(cctx, ISN_STORENR)) == NULL) return FAIL; - isn->isn_arg.storenr.str_idx = idx; - isn->isn_arg.storenr.str_val = value; + isn->isn_arg.storenr.stnr_idx = idx; + isn->isn_arg.storenr.stnr_val = value; return OK; } @@ -3789,8 +3789,8 @@ compile_assignment(char_u *arg, exarg_T garray_T *stack = &cctx->ctx_type_stack; isn->isn_type = ISN_STORENR; - isn->isn_arg.storenr.str_idx = idx; - isn->isn_arg.storenr.str_val = val; + isn->isn_arg.storenr.stnr_idx = idx; + isn->isn_arg.storenr.stnr_val = val; if (stack->ga_len > 0) --stack->ga_len; }