Mercurial > vim
changeset 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 | 382035d4fc36 |
children | 9e9120833246 |
files | src/version.c src/vim9type.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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,
--- 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) {