diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-09 15:54:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-09 15:54:00 +0200 |
commit | 6bcb18253a392cf75d3784953ef9c71de7af9019 (patch) | |
tree | c5c4362cdf6da68ae231b4de1594a0d9ff2b0aee /src/drawscreen.c | |
parent | 981217c11f92b37f2baa51492cbe12e85d0ea493 (diff) | |
download | vim-git-6bcb18253a392cf75d3784953ef9c71de7af9019.tar.gz |
patch 8.2.3132: compiler warns for size_t to colnr_T conversion.v8.2.3132
Problem: Compiler warns for size_t to colnr_T conversion. (Randall W.
Morris)
Solution: Add a type cast.
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r-- | src/drawscreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c index da0cd1306..44c2dc52b 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -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) |