diff src/vim9type.c @ 31661:b6044f37d53d v9.0.1163

patch 9.0.1163: compiler warning for implicit size_t/int conversion Commit: https://github.com/vim/vim/commit/dda3053121abd72f50788d6615163e99c1cfff2b Author: Mike Williams <mikew@globalgraphics.com> 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)
author Bram Moolenaar <Bram@vim.org>
date Mon, 09 Jan 2023 15:30:04 +0100
parents 094f4c67e9c9
children 9fba3e8bbadc
line wrap: on
line diff
--- 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)
 	{