0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.1128: build failure

Problem:    Build failure.
Solution:   Add type cast.  Add missing error messages.
This commit is contained in:
Bram Moolenaar
2023-01-01 20:31:30 +00:00
parent 6acf757c6a
commit 993dbc33a8
3 changed files with 10 additions and 1 deletions

View 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;