patch 9.0.1746: vim9class compile error for char/char_u conversion

Commit: 
https://github.com/vim/vim/commit/28ae5a32fd071b9c5881c3c33f531191ed641e55
Author: Christian Brabandt <[email protected]>
Date:   Sat Aug 19 14:09:16 2023 +0200

    patch 9.0.1746: vim9class compile error for char/char_u conversion
    
    Problem: vim9class compile error for char/char_u conversion
    Solution: Correctly cast to (char *)
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/version.c b/src/version.c
index 05e7e03cf..8f0db9824 100644
--- a/src/version.c
+++ b/src/version.c
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1746,
 /**/
     1745,
 /**/
diff --git a/src/vim9class.c b/src/vim9class.c
index 3822753a4..10b178ef1 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)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qXKr9-008zi6-7f%40256bit.org.

Raspunde prin e-mail lui