]> granicus.if.org Git - vim/commitdiff
patch 9.0.1163: compiler warning for implicit size_t/int conversion v9.0.1163
authorMike Williams <mikew@globalgraphics.com>
Mon, 9 Jan 2023 14:18:13 +0000 (14:18 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 9 Jan 2023 14:18:13 +0000 (14:18 +0000)
Problem:    Compiler warning for implicit size_t/int conversion.
Solution:   Add a type cast. (Mike Williams, closes #11795)

src/version.c
src/vim9type.c

index ab9c91c261803c4197f76d34c283ddeabb1b0486..4fbd96de0d30f32b541f2958b6d9f72d651fb53c 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1163,
 /**/
     1162,
 /**/
index 62d43635ca16dcd3197cefe611feb264f7795119..ba925e0eb2b525c019b96e71a93fb7557d353a31 100644 (file)
@@ -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)
        {