Patch 8.1.1663

13 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 12, 2019, 7:59:46 AM7/12/19
to vim...@googlegroups.com

Patch 8.1.1663
Problem: Compiler warning for using size_t.
Solution: Add type cast. (Mike Williams)
Files: src/popupwin.c


*** ../vim-8.1.1662/src/popupwin.c 2019-07-10 21:55:50.766597954 +0200
--- src/popupwin.c 2019-07-12 13:56:51.619885411 +0200
***************
*** 199,205 ****
getvcol(textwp, &pos, &mcol, NULL, NULL);
wp->w_popup_mouse_mincol = mcol;

! pos.col = col + STRLEN(text) - 1;
getvcol(textwp, &pos, NULL, NULL, &mcol);
wp->w_popup_mouse_maxcol = mcol;
vim_free(text);
--- 199,205 ----
getvcol(textwp, &pos, &mcol, NULL, NULL);
wp->w_popup_mouse_mincol = mcol;

! pos.col = col + (colnr_T)STRLEN(text) - 1;
getvcol(textwp, &pos, NULL, NULL, &mcol);
wp->w_popup_mouse_maxcol = mcol;
vim_free(text);
*** ../vim-8.1.1662/src/version.c 2019-07-11 22:04:14.817346617 +0200
--- src/version.c 2019-07-12 13:57:41.363671782 +0200
***************
*** 779,780 ****
--- 779,782 ----
{ /* Add new patch number below this line */
+ /**/
+ 1663,
/**/

--
Advice to worms: Sleep late.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages