To: vim_dev@googlegroups.com Subject: Patch 8.2.3816 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3816 Problem: Compiler warning for posible loss of data on MS-Windows. Solution: Add type cast. (Mike Williams, closes #9349) Files: src/userfunc.c *** ../vim-8.2.3815/src/userfunc.c 2021-12-15 12:06:39.572632221 +0000 --- src/userfunc.c 2021-12-15 16:36:35.838762987 +0000 *************** *** 4194,4200 **** // 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_VAR_NOAUTOLOAD + EVAL_VAR_IMPORT + EVAL_VAR_NO_FUNC) == OK) { --- 4194,4200 ---- // In Vim9 script a function cannot have the same name as a // variable. if (vim9script && *arg == K_SPECIAL ! && eval_variable(name_base, (int)STRLEN(name_base), NULL, NULL, EVAL_VAR_NOAUTOLOAD + EVAL_VAR_IMPORT + EVAL_VAR_NO_FUNC) == OK) { *** ../vim-8.2.3815/src/version.c 2021-12-15 15:41:41.085254846 +0000 --- src/version.c 2021-12-15 16:35:45.542814818 +0000 *************** *** 751,752 **** --- 751,754 ---- { /* Add new patch number below this line */ + /**/ + 3816, /**/ -- A day without sunshine is like, well, night. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///