]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1746: vim9class compile error for char/char_u conversion v9.0.1746
authorChristian Brabandt <cb@256bit.org>
Sat, 19 Aug 2023 12:09:16 +0000 (14:09 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 19 Aug 2023 12:10:48 +0000 (14:10 +0200)
Problem: vim9class compile error for char/char_u conversion
Solution: Correctly cast to (char *)

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/version.c
src/vim9class.c

index 05e7e03cfbd474085c6fe6c2f01dec315c4b94ce..8f0db982444ddcdaae7d3726c4f43843dd2282fa 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1746,
 /**/
     1745,
 /**/
index 3822753a4edf524db3417558185a96a074c8af23..10b178ef1fe581fc5b83776c6917b7fef3124006 100644 (file)
@@ -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)