]> granicus.if.org Git - vim/commitdiff
patch 8.1.1663: compiler warning for using size_t v8.1.1663
authorBram Moolenaar <Bram@vim.org>
Fri, 12 Jul 2019 11:59:20 +0000 (13:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 12 Jul 2019 11:59:20 +0000 (13:59 +0200)
Problem:    Compiler warning for using size_t.
Solution:   Add type cast. (Mike Williams)

src/popupwin.c
src/version.c

index f2b31300f07a754eb8b2e8237a012f560e55e599..484f77406743bcb8b7d535a0bedbea3a2560ad74 100644 (file)
@@ -199,7 +199,7 @@ set_mousemoved_columns(win_T *wp, int flags)
        getvcol(textwp, &pos, &mcol, NULL, NULL);
        wp->w_popup_mouse_mincol = mcol;
 
-       pos.col = col + STRLEN(text) - 1;
+       pos.col = col + (colnr_T)STRLEN(text) - 1;
        getvcol(textwp, &pos, NULL, NULL, &mcol);
        wp->w_popup_mouse_maxcol = mcol;
        vim_free(text);
index ae44f513e79d18bcb188d4f0ed3d7da8b5c18820..7b779790de26688bee258e876b23e79a06bc6870 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1663,
 /**/
     1662,
 /**/