From 30a844771554d28f1a88a256e6088dbb252228c1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 27 Feb 2023 08:07:14 +0000 Subject: patch 9.0.1358: compilation error with some compilers Problem: Compilation error with some compilers. Solution: Avoid using "class" as member name. --- src/vim9instr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vim9instr.c') 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: -- cgit v1.2.1