From 037ec8f20865fa171b2ff05c19b87df684ee47ce Mon Sep 17 00:00:00 2001 From: Daniel Steinberg Date: Wed, 30 Jun 2021 14:03:10 -0400 Subject: vim-patch:8.1.2319: compiler warning for int size Problem: Compiler warning for int size. Solution: Add typecast. (Mike Williams) https://github.com/vim/vim/commit/07a63d86338476bafbd1a3ec462672df92666498 --- src/nvim/mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c index 14c20b2b2b..4001d620c8 100644 --- a/src/nvim/mouse.c +++ b/src/nvim/mouse.c @@ -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; } -- cgit