comparison src/userfunc.c @ 26574:5f4198087073 v8.2.3816

patch 8.2.3816: compiler warning for posible loss of data on MS-Windows Commit: https://github.com/vim/vim/commit/1821d1498ca57dc3f7a21767c253a778d9b113fb Author: Mike Williams <mikew@globalgraphics.com> Date: Wed Dec 15 16:38:33 2021 +0000 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 https://github.com/vim/vim/issues/9349)
author Bram Moolenaar <Bram@vim.org>
date Wed, 15 Dec 2021 17:45:04 +0100
parents ba52a5ef59f1
children fac6673086df
comparison
equal deleted inserted replaced
26573:09e19d3d78e3 26574:5f4198087073
4192 emsg_funcname((char *)e_invarg2, arg); 4192 emsg_funcname((char *)e_invarg2, arg);
4193 4193
4194 // In Vim9 script a function cannot have the same name as a 4194 // In Vim9 script a function cannot have the same name as a
4195 // variable. 4195 // variable.
4196 if (vim9script && *arg == K_SPECIAL 4196 if (vim9script && *arg == K_SPECIAL
4197 && eval_variable(name_base, STRLEN(name_base), NULL, NULL, 4197 && eval_variable(name_base, (int)STRLEN(name_base), NULL, NULL,
4198 EVAL_VAR_NOAUTOLOAD + EVAL_VAR_IMPORT 4198 EVAL_VAR_NOAUTOLOAD + EVAL_VAR_IMPORT
4199 + EVAL_VAR_NO_FUNC) == OK) 4199 + EVAL_VAR_NO_FUNC) == OK)
4200 { 4200 {
4201 semsg(_(e_redefining_script_item_str), name_base); 4201 semsg(_(e_redefining_script_item_str), name_base);
4202 goto ret_free; 4202 goto ret_free;