diff options
author | Christian Brabandt <cb@256bit.org> | 2023-08-19 14:09:16 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-19 14:10:48 +0200 |
commit | 28ae5a32fd071b9c5881c3c33f531191ed641e55 (patch) | |
tree | a4dd6713d38ea3c998dbe87321fa21338a9adfb8 | |
parent | fc3058495d3ff58c8f2b9dd4452d0840f2d1fa42 (diff) |
patch 9.0.1746: vim9class compile error for char/char_u conversionv9.0.1746
Problem: vim9class compile error for char/char_u conversion
Solution: Correctly cast to (char *)
Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9class.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c index 05e7e03cfb..8f0db98244 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1746, +/**/ 1745, /**/ 1744, diff --git a/src/vim9class.c b/src/vim9class.c index 3822753a4e..10b178ef1f 100644 --- a/src/vim9class.c +++ b/src/vim9class.c @@ -802,7 +802,7 @@ early_ret: continue; // Ensure the type is matching. - where.wt_func_name = m->ocm_name; + where.wt_func_name = (char *)m->ocm_name; where.wt_kind = WT_MEMBER; if (check_type_maybe(if_ms[if_i].ocm_type, m->ocm_type, TRUE, where) != OK) |