comparison src/charset.c @ 29477:6387e75a4a6b v9.0.0080

patch 9.0.0080: compiler warning for size_t to int conversion Commit: https://github.com/vim/vim/commit/0494789ecee9e2a973f48426f7a69fb96378fa8a Author: Mike Williams <mikew@globalgraphics.com> Date: Tue Jul 26 16:03:42 2022 +0100 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 https://github.com/vim/vim/issues/10795)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Jul 2022 17:15:03 +0200
parents 1ae3e2d691a0
children 14b139cbec49
comparison
equal deleted inserted replaced
29476:2586309508be 29477:6387e75a4a6b
1093 && -tp->tp_id <= wp->w_buffer->b_textprop_text.ga_len) 1093 && -tp->tp_id <= wp->w_buffer->b_textprop_text.ga_len)
1094 { 1094 {
1095 char_u *p = ((char_u **)wp->w_buffer->b_textprop_text.ga_data)[ 1095 char_u *p = ((char_u **)wp->w_buffer->b_textprop_text.ga_data)[
1096 -tp->tp_id - 1]; 1096 -tp->tp_id - 1];
1097 // TODO: count screen cells 1097 // TODO: count screen cells
1098 cts->cts_cur_text_width = STRLEN(p); 1098 cts->cts_cur_text_width = (int)STRLEN(p);
1099 size += cts->cts_cur_text_width; 1099 size += cts->cts_cur_text_width;
1100 break; 1100 break;
1101 } 1101 }
1102 if (tp->tp_col - 1 > col) 1102 if (tp->tp_col - 1 > col)
1103 break; 1103 break;