# HG changeset patch # User Bram Moolenaar # Date 1673274604 -3600 # Node ID b6044f37d53db644ee5861b804c432411b642c25 # Parent 382035d4fc368671473248930eeb57037494843d patch 9.0.1163: compiler warning for implicit size_t/int conversion Commit: https://github.com/vim/vim/commit/dda3053121abd72f50788d6615163e99c1cfff2b Author: Mike Williams Date: Mon Jan 9 14:18:13 2023 +0000 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 https://github.com/vim/vim/issues/11795) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1163, +/**/ 1162, /**/ 1161, diff --git a/src/vim9type.c b/src/vim9type.c --- a/src/vim9type.c +++ b/src/vim9type.c @@ -1275,7 +1275,7 @@ parse_type(char_u **arg, garray_T *type_ // 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) {