0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3816: compiler warning for posible loss of data on MS-Windows

Problem:    Compiler warning for posible loss of data on MS-Windows.
Solution:   Add type cast. (Mike Williams, closes #9349)
This commit is contained in:
Mike Williams
2021-12-15 16:38:33 +00:00
committed by Bram Moolenaar
parent ce7eada12e
commit 1821d1498c
2 changed files with 3 additions and 1 deletions

View File

@@ -4194,7 +4194,7 @@ define_function(exarg_T *eap, char_u *name_arg)
// In Vim9 script a function cannot have the same name as a
// variable.
if (vim9script && *arg == K_SPECIAL
&& eval_variable(name_base, STRLEN(name_base), NULL, NULL,
&& eval_variable(name_base, (int)STRLEN(name_base), NULL, NULL,
EVAL_VAR_NOAUTOLOAD + EVAL_VAR_IMPORT
+ EVAL_VAR_NO_FUNC) == OK)
{