]> granicus.if.org Git - vim/commitdiff
patch 8.1.2309: compiler warning for argument type v8.1.2309
authorBram Moolenaar <Bram@vim.org>
Sat, 16 Nov 2019 19:49:18 +0000 (20:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 16 Nov 2019 19:49:18 +0000 (20:49 +0100)
Problem:    Compiler warning for argument type.
Solution:   Use linenr_T and cast to varnumber_T. (John Marriott)

src/mouse.c
src/version.c

index f215d3d99640faca8d30b81af5dd48ed4cff6850..00a2783f261327e300ee45c9bb3c2fc5749a9c42 100644 (file)
@@ -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
index 00aa9e8e3a1b44f2b6e10b66294e4eef97e8333f..5030d7bceb51ad47263064d1ba012827c2295378 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2309,
 /**/
     2308,
 /**/