diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-02-27 08:07:14 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-27 08:07:14 +0000 |
commit | 30a844771554d28f1a88a256e6088dbb252228c1 (patch) | |
tree | dfeedb4a2cd9ca080b6b1f4403fc2b910670b288 /src/vim9instr.c | |
parent | c4e1b86cb0d88fa5ec1141d3c600e026dcc1bc21 (diff) | |
download | vim-git-30a844771554d28f1a88a256e6088dbb252228c1.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/vim9instr.c')
-rw-r--r-- | src/vim9instr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vim9instr.c b/src/vim9instr.c index 4f228e4aa..e2cdc3a78 100644 --- a/src/vim9instr.c +++ b/src/vim9instr.c @@ -678,7 +678,7 @@ generate_PUSHCLASS(cctx_T *cctx, class_T *class) class == NULL ? &t_any : &class->class_type); if (isn == NULL) return FAIL; - isn->isn_arg.class = class; + isn->isn_arg.classarg = class; if (class != NULL) ++class->class_refcount; return OK; @@ -2509,7 +2509,7 @@ delete_instr(isn_T *isn) break; case ISN_PUSHCLASS: - class_unref(isn->isn_arg.class); + class_unref(isn->isn_arg.classarg); break; case ISN_UCALL: |