]> granicus.if.org Git - vim/commitdiff
patch 9.0.0080: compiler warning for size_t to int conversion v9.0.0080
authorMike Williams <mikew@globalgraphics.com>
Tue, 26 Jul 2022 15:03:42 +0000 (16:03 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 26 Jul 2022 15:03:42 +0000 (16:03 +0100)
Problem:    Compiler warning for size_t to int conversion.
Solution:   Add type casts. (Mike Williams, closes #10795)

src/charset.c
src/drawline.c
src/version.c

index f41248bd63e056b1fec3ccd0bb65fbd88ec8a05b..f3d12cbe86b9a142f2100c97ad927f8ccca0328e 100644 (file)
@@ -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;
            }
index 666e32d1c8ed87d256e452b0bc3ad29553132a90..7b164578c3aed6007840c337d4725388b3b40181 100644 (file)
@@ -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;
index bd75074afea0f9b23b38b8d42046f263c4e3ff60..50bf7c492b37df9355a8fe896b56817d61ced921 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    80,
 /**/
     79,
 /**/