summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Williams <mikew@globalgraphics.com>2023-01-09 14:18:13 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-09 14:18:13 +0000
commitdda3053121abd72f50788d6615163e99c1cfff2b (patch)
tree47ebbb58ee1faba0177b2c2e2c103ecafa05a1ea
parent870cd76283e003a0fa57449aa077f0d01a6a2d80 (diff)
downloadvim-git-dda3053121abd72f50788d6615163e99c1cfff2b.tar.gz
patch 9.0.1163: compiler warning for implicit size_t/int conversionv9.0.1163
Problem: Compiler warning for implicit size_t/int conversion. Solution: Add a type cast. (Mike Williams, closes #11795)
-rw-r--r--src/version.c2
-rw-r--r--src/vim9type.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index ab9c91c26..4fbd96de0 100644
--- 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
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)
{