vim-patch:8.1.2319: compiler warning for int size

Problem: Compiler warning for int size.
Solution: Add typecast. (Mike Williams)
07a63d8633
This commit is contained in:
Daniel Steinberg 2021-06-30 14:03:10 -04:00
parent 95bf86c2bf
commit 037ec8f208

View File

@ -410,7 +410,7 @@ bool mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump)
col += win->w_skipcol;
// limit to text length plus one
p = ml_get_buf(win->w_buffer, lnum, false);
count = STRLEN(p);
count = (int)STRLEN(p);
if (col > count) {
col = count;
}