From 8934ec027da323aea95d4f6f6cf4967f054433b2 Mon Sep 17 00:00:00 2001 From: Wilhelm Payne Date: Sun, 28 Aug 2022 17:08:18 +0100 Subject: 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 #11000) --- src/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/message.c') diff --git a/src/message.c b/src/message.c index bff54d008c..aa3506ebef 100644 --- a/src/message.c +++ b/src/message.c @@ -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 -- cgit v1.2.3