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:
committed by
Bram Moolenaar
parent
ce7eada12e
commit
1821d1498c
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user