diff src/popupwin.c @ 17328:12c1f01b304e v8.1.1663

patch 8.1.1663: compiler warning for using size_t commit https://github.com/vim/vim/commit/1072768b919efd1dd3fe28d58b24274cb92ad098 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 12 13:59:20 2019 +0200 patch 8.1.1663: compiler warning for using size_t Problem: Compiler warning for using size_t. Solution: Add type cast. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jul 2019 14:00:06 +0200
parents 33dccaafb214
children 61f0bf94ef92
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -199,7 +199,7 @@ set_mousemoved_columns(win_T *wp, int fl
 	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);