summaryrefslogtreecommitdiffstats
path: root/src/vim9type.c
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 /src/vim9type.c
parent870cd76283e003a0fa57449aa077f0d01a6a2d80 (diff)
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)
Diffstat (limited to 'src/vim9type.c')
-rw-r--r--src/vim9type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9type.c b/src/vim9type.c
index 62d43635ca..ba925e0eb2 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)
{