summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Williams <mikew@globalgraphics.com>2022-07-26 16:03:42 +0100
committerBram Moolenaar <Bram@vim.org>2022-07-26 16:03:42 +0100
commit0494789ecee9e2a973f48426f7a69fb96378fa8a (patch)
tree16b380c8f121703108d67ca2ccc8080d163609c9
parent6809ff978a5c5b798952db9fa663df9e1776f3ff (diff)
patch 9.0.0080: compiler warning for size_t to int conversionv9.0.0080
Problem: Compiler warning for size_t to int conversion. Solution: Add type casts. (Mike Williams, closes #10795)
-rw-r--r--src/charset.c2
-rw-r--r--src/drawline.c2
-rw-r--r--src/version.c2
3 files changed, 4 insertions, 2 deletions
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;
}
diff --git a/src/drawline.c b/src/drawline.c
index 666e32d1c8..7b164578c3 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -1524,7 +1524,7 @@ win_line(
if (p != NULL)
{
p_extra = p;
- n_extra = STRLEN(p);
+ n_extra = (int)STRLEN(p);
extra_attr = used_attr;
n_attr = n_extra;
text_prop_attr = 0;
diff --git a/src/version.c b/src/version.c
index bd75074afe..50bf7c492b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -736,6 +736,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 80,
+/**/
79,
/**/
78,