To: vim_dev@googlegroups.com Subject: Patch 8.1.2309 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.2309 Problem: Compiler warning for argument type. Solution: Use linenr_T and cast to varnumber_T. (John Marriott) Files: src/mouse.c *** ../vim-8.1.2308/src/mouse.c 2019-11-16 18:21:57.990848019 +0100 --- src/mouse.c 2019-11-16 20:47:28.951348429 +0100 *************** *** 3019,3025 **** varnumber_T winid = 0; varnumber_T winrow = 0; varnumber_T wincol = 0; ! varnumber_T line = 0; varnumber_T column = 0; if (rettv_dict_alloc(rettv) != OK) --- 3019,3025 ---- varnumber_T winid = 0; varnumber_T winrow = 0; varnumber_T wincol = 0; ! linenr_T line = 0; varnumber_T column = 0; if (rettv_dict_alloc(rettv) != OK) *************** *** 3061,3067 **** dict_add_number(d, "winid", winid); dict_add_number(d, "winrow", winrow); dict_add_number(d, "wincol", wincol); ! dict_add_number(d, "line", line); dict_add_number(d, "column", column); } #endif --- 3061,3067 ---- dict_add_number(d, "winid", winid); dict_add_number(d, "winrow", winrow); dict_add_number(d, "wincol", wincol); ! dict_add_number(d, "line", (varnumber_T)line); dict_add_number(d, "column", column); } #endif *** ../vim-8.1.2308/src/version.c 2019-11-16 20:41:47.824812616 +0100 --- src/version.c 2019-11-16 20:48:54.822965345 +0100 *************** *** 743,744 **** --- 743,746 ---- { /* Add new patch number below this line */ + /**/ + 2309, /**/ -- You can't have everything. Where would you put it? -- Steven Wright /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///