]> granicus.if.org Git - vim/commitdiff
patch 9.0.0298: compiler warning for size_t to int conversion v9.0.0298
authorWilhelm Payne <wbpayne@wilhelmpayne.com>
Sun, 28 Aug 2022 16:08:18 +0000 (17:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2022 16:08:18 +0000 (17:08 +0100)
Problem:    Compiler warning for size_t to int conversion.
Solution:   Add a type cast. (Wilhelm Payne, closes #11000)

src/message.c
src/version.c

index bff54d008cc48a291db9bde70b301d50c716a139..aa3506ebef8a46d4ab0aae8d6d49a1adcd86b6f7 100644 (file)
@@ -2285,7 +2285,7 @@ put_msg_win(win_T *wp, int where, char_u *t_s, char_u *end, linenr_T lnum)
     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
 
index 80a532e4929c0e3d2c946a277f619c10e53702cc..69cfafe5004e24fa9d9c0654b855d8e0ea922648 100644 (file)
@@ -707,6 +707,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    298,
 /**/
     297,
 /**/