diff options
author | Mike Williams <mikew@globalgraphics.com> | 2023-01-09 14:18:13 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-09 14:18:13 +0000 |
commit | dda3053121abd72f50788d6615163e99c1cfff2b (patch) | |
tree | 47ebbb58ee1faba0177b2c2e2c103ecafa05a1ea /src/vim9type.c | |
parent | 870cd76283e003a0fa57449aa077f0d01a6a2d80 (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.c | 2 |
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) { |