summaryrefslogtreecommitdiff
path: root/src/drawscreen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-09 15:54:00 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-09 15:54:00 +0200
commit6bcb18253a392cf75d3784953ef9c71de7af9019 (patch)
treec5c4362cdf6da68ae231b4de1594a0d9ff2b0aee /src/drawscreen.c
parent981217c11f92b37f2baa51492cbe12e85d0ea493 (diff)
downloadvim-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.c2
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)