From 0494789ecee9e2a973f48426f7a69fb96378fa8a Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Tue, 26 Jul 2022 16:03:42 +0100 Subject: patch 9.0.0080: compiler warning for size_t to int conversion Problem: Compiler warning for size_t to int conversion. Solution: Add type casts. (Mike Williams, closes #10795) --- src/charset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/charset.c') diff --git a/src/charset.c b/src/charset.c index f41248bd63..f3d12cbe86 100644 --- a/src/charset.c +++ b/src/charset.c @@ -1095,7 +1095,7 @@ win_lbr_chartabsize( char_u *p = ((char_u **)wp->w_buffer->b_textprop_text.ga_data)[ -tp->tp_id - 1]; // TODO: count screen cells - cts->cts_cur_text_width = STRLEN(p); + cts->cts_cur_text_width = (int)STRLEN(p); size += cts->cts_cur_text_width; break; } -- cgit v1.2.3