forked from aniani/vim
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)
This commit is contained in:
committed by
Bram Moolenaar
parent
6809ff978a
commit
0494789ece
@@ -1095,7 +1095,7 @@ win_lbr_chartabsize(
|
|||||||
char_u *p = ((char_u **)wp->w_buffer->b_textprop_text.ga_data)[
|
char_u *p = ((char_u **)wp->w_buffer->b_textprop_text.ga_data)[
|
||||||
-tp->tp_id - 1];
|
-tp->tp_id - 1];
|
||||||
// TODO: count screen cells
|
// 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;
|
size += cts->cts_cur_text_width;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -1524,7 +1524,7 @@ win_line(
|
|||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
{
|
{
|
||||||
p_extra = p;
|
p_extra = p;
|
||||||
n_extra = STRLEN(p);
|
n_extra = (int)STRLEN(p);
|
||||||
extra_attr = used_attr;
|
extra_attr = used_attr;
|
||||||
n_attr = n_extra;
|
n_attr = n_extra;
|
||||||
text_prop_attr = 0;
|
text_prop_attr = 0;
|
||||||
|
@@ -735,6 +735,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
80,
|
||||||
/**/
|
/**/
|
||||||
79,
|
79,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user