Skip to content

Commit 993dbc3

Browse files
committed
patch 9.0.1128: build failure
Problem: Build failure. Solution: Add type cast. Add missing error messages.
1 parent 6acf757 commit 993dbc3

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/errors.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3401,3 +3401,9 @@ EXTERN char e_member_not_found_on_class_str_str[]
34013401
EXTERN char e_cannot_add_textprop_with_text_after_using_textprop_with_negative_id[]
34023402
INIT(= N_("E1339: Cannot add a textprop with text after using a textprop with a negative id"));
34033403
#endif
3404+
#ifdef FEAT_EVAL
3405+
EXTERN char e_argument_already_declared_in_class_str[]
3406+
INIT(= N_("E1340: Argument already declared in the class: %s"));
3407+
EXTERN char e_variable_already_declared_in_class_str[]
3408+
INIT(= N_("E1341: Variable already declared in the class: %s"));
3409+
#endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1128,
698700
/**/
699701
1127,
700702
/**/

src/vim9class.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,8 @@ find_class_func(char_u **arg)
827827
size_t len = name_end - name;
828828
typval_T tv;
829829
tv.v_type = VAR_UNKNOWN;
830-
if (eval_variable(name, len, 0, &tv, NULL, EVAL_VAR_NOAUTOLOAD) == FAIL)
830+
if (eval_variable(name, (int)len,
831+
0, &tv, NULL, EVAL_VAR_NOAUTOLOAD) == FAIL)
831832
return NULL;
832833
if (tv.v_type != VAR_CLASS && tv.v_type != VAR_OBJECT)
833834
goto fail_after_eval;

0 commit comments

Comments
 (0)