changeset 25192:0588ea998908 v8.2.3132

patch 8.2.3132: compiler warns for size_t to colnr_T conversion. Commit: https://github.com/vim/vim/commit/6bcb18253a392cf75d3784953ef9c71de7af9019 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 9 15:54:00 2021 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Fri, 09 Jul 2021 16:00:05 +0200
parents 00e276200553
children aa10290ecb6f
files src/drawscreen.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3132,
+/**/
     3131,
 /**/
     3130,