changeset 29920:6d75b361e9c2 v9.0.0298

patch 9.0.0298: compiler warning for size_t to int conversion Commit: https://github.com/vim/vim/commit/8934ec027da323aea95d4f6f6cf4967f054433b2 Author: Wilhelm Payne <wbpayne@wilhelmpayne.com> Date: Sun Aug 28 17:08:18 2022 +0100 patch 9.0.0298: compiler warning for size_t to int conversion Problem: Compiler warning for size_t to int conversion. Solution: Add a type cast. (Wilhelm Payne, closes https://github.com/vim/vim/issues/11000)
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Aug 2022 18:15:02 +0200
parents 9abb84574c68
children f529c18aa16a
files src/message.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/message.c
+++ b/src/message.c
@@ -2285,7 +2285,7 @@ put_msg_win(win_T *wp, int where, char_u
     redraw_win_later(wp, UPD_NOT_VALID);
 
     // set msg_col so that a newline is written if needed
-    msg_col = STRLEN(t_s);
+    msg_col = (int)STRLEN(t_s);
 }
 #endif
 
--- a/src/version.c
+++ b/src/version.c
@@ -708,6 +708,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    298,
+/**/
     297,
 /**/
     296,