From: Bram Moolenaar Date: Sat, 16 Nov 2019 19:49:18 +0000 (+0100) Subject: patch 8.1.2309: compiler warning for argument type X-Git-Tag: v8.1.2309 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abe12a1a4fce36bfa5dea3a0ce85603432d1905b;p=vim 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 index f215d3d99..00a2783f2 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -3019,7 +3019,7 @@ f_getmousepos(typval_T *argvars UNUSED, typval_T *rettv) 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, typval_T *rettv) 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 index 00aa9e8e3..5030d7bce 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2309, /**/ 2308, /**/