To: vim_dev@googlegroups.com Subject: Patch 8.2.4435 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4435 Problem: Dead code in checking map() arguments. (Dominique Pellé) Solution: Remove the first return statement. (closes #9815) Files: src/evalfunc.c *** ../vim-8.2.4434/src/evalfunc.c 2022-02-21 13:13:44.923693160 +0000 --- src/evalfunc.c 2022-02-21 18:28:15.122724588 +0000 *************** *** 588,594 **** ? &t_any : expected_ret; if (args[0] == NULL) args[0] = &t_unknown; - return check_arg_type(&t_func_exp, type, context); where.wt_index = 2; return check_type(&t_func_exp, type, TRUE, where); --- 588,593 ---- *** ../vim-8.2.4434/src/version.c 2022-02-21 17:56:29.621257234 +0000 --- src/version.c 2022-02-21 18:34:12.514270279 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4435, /**/ -- From "know your smileys": O:-) Saint /// 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 ///