]> granicus.if.org Git - vim/commitdiff
patch 9.0.1128: build failure v9.0.1128
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Jan 2023 20:31:30 +0000 (20:31 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Jan 2023 20:31:30 +0000 (20:31 +0000)
Problem:    Build failure.
Solution:   Add type cast.  Add missing error messages.

src/errors.h
src/version.c
src/vim9class.c

index e33f2e66b2c07a037558bb4b08e5c698c825add2..26629b030266181f5ba24e5deb594796a5238831 100644 (file)
@@ -3401,3 +3401,9 @@ EXTERN char e_member_not_found_on_class_str_str[]
 EXTERN char e_cannot_add_textprop_with_text_after_using_textprop_with_negative_id[]
        INIT(= N_("E1339: Cannot add a textprop with text after using a textprop with a negative id"));
 #endif
+#ifdef FEAT_EVAL
+EXTERN char e_argument_already_declared_in_class_str[]
+       INIT(= N_("E1340: Argument already declared in the class: %s"));
+EXTERN char e_variable_already_declared_in_class_str[]
+       INIT(= N_("E1341: Variable already declared in the class: %s"));
+#endif
index dc320bef6fc17a9c2896e40414652f15de11afeb..5efbf60ca4b7552e8be0729213b2f81e8c84617f 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1128,
 /**/
     1127,
 /**/
index 8e05a17f4c2a6067425fdc38bfda67f97ac51f84..e764f7088f6e52dca867fb650b22beb7b247f697 100644 (file)
@@ -827,7 +827,8 @@ find_class_func(char_u **arg)
     size_t len = name_end - name;
     typval_T tv;
     tv.v_type = VAR_UNKNOWN;
-    if (eval_variable(name, len, 0, &tv, NULL, EVAL_VAR_NOAUTOLOAD) == FAIL)
+    if (eval_variable(name, (int)len,
+                                   0, &tv, NULL, EVAL_VAR_NOAUTOLOAD) == FAIL)
        return NULL;
     if (tv.v_type != VAR_CLASS && tv.v_type != VAR_OBJECT)
        goto fail_after_eval;