mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
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:
@@ -410,7 +410,7 @@ bool mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump)
|
|||||||
col += win->w_skipcol;
|
col += win->w_skipcol;
|
||||||
// limit to text length plus one
|
// limit to text length plus one
|
||||||
p = ml_get_buf(win->w_buffer, lnum, false);
|
p = ml_get_buf(win->w_buffer, lnum, false);
|
||||||
count = STRLEN(p);
|
count = (int)STRLEN(p);
|
||||||
if (col > count) {
|
if (col > count) {
|
||||||
col = count;
|
col = count;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user