Patch 9.0.0080
Problem: Compiler warning for size_t to int conversion.
Solution: Add type casts. (Mike Williams, closes #10795)
Files: src/charset.c, src/drawline.c
*** ../vim-9.0.0079/src/charset.c 2022-07-26 11:20:45.116283126 +0100
--- src/charset.c 2022-07-26 15:59:52.890558205 +0100
***************
*** 1095,1101 ****
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);
size += cts->cts_cur_text_width;
break;
}
--- 1095,1101 ----
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 = (int)STRLEN(p);
size += cts->cts_cur_text_width;
break;
}
*** ../vim-9.0.0079/src/drawline.c 2022-07-26 11:42:31.487977143 +0100
--- src/drawline.c 2022-07-26 16:00:52.054425271 +0100
***************
*** 1524,1530 ****
if (p != NULL)
{
p_extra = p;
! n_extra = STRLEN(p);
extra_attr = used_attr;
n_attr = n_extra;
text_prop_attr = 0;
--- 1524,1530 ----
if (p != NULL)
{
p_extra = p;
! n_extra = (int)STRLEN(p);
extra_attr = used_attr;
n_attr = n_extra;
text_prop_attr = 0;
*** ../vim-9.0.0079/src/version.c 2022-07-26 15:10:52.813542580 +0100
--- src/version.c 2022-07-26 16:01:28.054344326 +0100
***************
*** 737,738 ****
--- 737,740 ----
{ /* Add new patch number below this line */
+ /**/
+ 80,
/**/
--
hundred-and-one symptoms of being an internet addict:
135. You cut classes or miss work so you can stay home and browse the web.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///