commit | b1e32ac0c998808705cfbd59e4b8510931875078 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Feb 21 12:38:51 2023 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Feb 21 12:38:51 2023 +0000 |
tree | 22bf3a12787ac488a056318c5b2460071cc0f3aa | |
parent | 938ae280c79b8cdb0fca60336ec4c090ecd8bb5a [diff] [blame] |
patch 9.0.1334: using tt_member for the class leads to mistakes Problem: Using tt_member for the class leads to mistakes. Solution: Add a separate tt_class field.
diff --git a/src/vim9expr.c b/src/vim9expr.c index 2fa8b57..b8458aa 100644 --- a/src/vim9expr.c +++ b/src/vim9expr.c
@@ -263,7 +263,7 @@ return FAIL; } - class_T *cl = (class_T *)type->tt_member; + class_T *cl = type->tt_class; int is_super = type->tt_flags & TTFLAG_SUPER; if (type == &t_super) {