# HG changeset patch # User Bram Moolenaar # Date 1573934403 -3600 # Node ID e00e8fbbec4abda19eda98efcd7f747bbb0f371b # Parent e39fb99b5331da8a576a303d0cebab4b259b643f patch 8.1.2309: compiler warning for argument type Commit: https://github.com/vim/vim/commit/abe12a1a4fce36bfa5dea3a0ce85603432d1905b Author: Bram Moolenaar Date: Sat Nov 16 20:49:18 2019 +0100 patch 8.1.2309: compiler warning for argument type Problem: Compiler warning for argument type. Solution: Use linenr_T and cast to varnumber_T. (John Marriott) diff --git a/src/mouse.c b/src/mouse.c --- a/src/mouse.c +++ b/src/mouse.c @@ -3019,7 +3019,7 @@ f_getmousepos(typval_T *argvars UNUSED, varnumber_T winid = 0; varnumber_T winrow = 0; varnumber_T wincol = 0; - varnumber_T line = 0; + linenr_T line = 0; varnumber_T column = 0; if (rettv_dict_alloc(rettv) != OK) @@ -3061,7 +3061,7 @@ f_getmousepos(typval_T *argvars UNUSED, 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, "line", (varnumber_T)line); dict_add_number(d, "column", column); } #endif diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2309, +/**/ 2308, /**/ 2307,