comparison src/mouse.c @ 18654:5f9faf363b19 v8.1.2319

patch 8.1.2319: compiler warning for int size Commit: https://github.com/vim/vim/commit/07a63d86338476bafbd1a3ec462672df92666498 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 18 21:38:37 2019 +0100 patch 8.1.2319: compiler warning for int size Problem: Compiler warning for int size. Solution: Add typecast. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 Nov 2019 21:45:03 +0100
parents e00e8fbbec4a
children 0969f82fbbff
comparison
equal deleted inserted replaced
18653:6c3ba0c377bf 18654:5f9faf363b19
2882 col += row * (win->w_width - off); 2882 col += row * (win->w_width - off);
2883 // add skip column (for long wrapping line) 2883 // add skip column (for long wrapping line)
2884 col += win->w_skipcol; 2884 col += win->w_skipcol;
2885 // limit to text length plus one 2885 // limit to text length plus one
2886 p = ml_get_buf(win->w_buffer, lnum, FALSE); 2886 p = ml_get_buf(win->w_buffer, lnum, FALSE);
2887 count = STRLEN(p); 2887 count = (int)STRLEN(p);
2888 if (col > count) 2888 if (col > count)
2889 col = count; 2889 col = count;
2890 } 2890 }
2891 2891
2892 if (!win->w_p_wrap) 2892 if (!win->w_p_wrap)