0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3132: compiler warns for size_t to colnr_T conversion.

Problem:    Compiler warns for size_t to colnr_T conversion. (Randall W.
            Morris)
Solution:   Add a type cast.
This commit is contained in:
Bram Moolenaar
2021-07-09 15:54:00 +02:00
parent 981217c11f
commit 6bcb18253a
2 changed files with 3 additions and 1 deletions

View File

@@ -2036,7 +2036,7 @@ win_update(win_T *wp)
{
colnr_T t;
pos.col = STRLEN(ml_get_buf(wp->w_buffer,
pos.col = (int)STRLEN(ml_get_buf(wp->w_buffer,
pos.lnum, FALSE));
getvvcol(wp, &pos, NULL, NULL, &t);
if (toc < t)