From: Mike Williams Date: Mon, 9 Jan 2023 14:18:13 +0000 (+0000) Subject: patch 9.0.1163: compiler warning for implicit size_t/int conversion X-Git-Tag: v9.0.1163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dda3053121abd72f50788d6615163e99c1cfff2b;p=vim patch 9.0.1163: compiler warning for implicit size_t/int conversion Problem: Compiler warning for implicit size_t/int conversion. Solution: Add a type cast. (Mike Williams, closes #11795) --- diff --git a/src/version.c b/src/version.c index ab9c91c26..4fbd96de0 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 */ +/**/ + 1163, /**/ 1162, /**/ diff --git a/src/vim9type.c b/src/vim9type.c index 62d43635c..ba925e0eb 100644 --- a/src/vim9type.c +++ b/src/vim9type.c @@ -1275,7 +1275,7 @@ parse_type(char_u **arg, garray_T *type_gap, int give_error) // It can be a class or interface name. typval_T tv; tv.v_type = VAR_UNKNOWN; - if (eval_variable(*arg, len, 0, &tv, NULL, EVAL_VAR_IMPORT) == OK) + if (eval_variable(*arg, (int)len, 0, &tv, NULL, EVAL_VAR_IMPORT) == OK) { if (tv.v_type == VAR_CLASS && tv.vval.v_class != NULL) {