summaryrefslogtreecommitdiff
path: root/src/vim9execute.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-02-27 08:07:14 +0000
committerBram Moolenaar <Bram@vim.org>2023-02-27 08:07:14 +0000
commit30a844771554d28f1a88a256e6088dbb252228c1 (patch)
treedfeedb4a2cd9ca080b6b1f4403fc2b910670b288 /src/vim9execute.c
parentc4e1b86cb0d88fa5ec1141d3c600e026dcc1bc21 (diff)
downloadvim-git-9.0.1358.tar.gz
patch 9.0.1358: compilation error with some compilersv9.0.1358
Problem: Compilation error with some compilers. Solution: Avoid using "class" as member name.
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r--src/vim9execute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c
index 90594ef92..bc4a1fcc0 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -4071,7 +4071,7 @@ exec_instructions(ectx_T *ectx)
break;
case ISN_PUSHCLASS:
tv->v_type = VAR_CLASS;
- tv->vval.v_class = iptr->isn_arg.class;
+ tv->vval.v_class = iptr->isn_arg.classarg;
break;
default:
tv->v_type = VAR_STRING;
@@ -6676,8 +6676,8 @@ list_instructions(char *pfx, isn_T *instr, int instr_count, ufunc_T *ufunc)
break;
case ISN_PUSHCLASS:
smsg("%s%4d PUSHCLASS %s", pfx, current,
- iptr->isn_arg.class == NULL ? "null"
- : (char *)iptr->isn_arg.class->class_name);
+ iptr->isn_arg.classarg == NULL ? "null"
+ : (char *)iptr->isn_arg.classarg->class_name);
break;
case ISN_PUSHEXC:
smsg("%s%4d PUSH v:exception", pfx, current);