]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0124: compiler warnings for variable types v8.2.0124
authorBram Moolenaar <Bram@vim.org>
Fri, 17 Jan 2020 18:12:03 +0000 (19:12 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 17 Jan 2020 18:12:03 +0000 (19:12 +0100)
Problem:    Compiler warnings for variable types.
Solution:   Change type, add type cast. (Mike Williams)

src/memline.c
src/version.c

index 2ac47af117b0341023877823251c418b949fb12b..2c4153946ee490968c8bd27fd6bc0527ce487dc9 100644 (file)
@@ -5753,8 +5753,8 @@ ml_find_line_or_offset(buf_T *buf, linenr_T lnum, long *offp)
        else
        {
 #ifdef FEAT_PROP_POPUP
-           long textprop_total = 0;
-           long textprop_size = 0;
+           size_t textprop_total = 0;
+           size_t textprop_size = 0;
            char_u *l1, *l2;
 #endif
 
@@ -5774,7 +5774,7 @@ ml_find_line_or_offset(buf_T *buf, linenr_T lnum, long *offp)
                if (!(offset >= size
                        + text_end - (int)((dp->db_index[idx]) & DB_INDEX_MASK)
 #ifdef FEAT_PROP_POPUP
-                       - textprop_total - textprop_size
+                       - (long)(textprop_total - textprop_size)
 #endif
                        + ffdos))
                    break;
index e3657bfd5971338414d23c938dd97d575613ef37..a32231b32426b11655f89cfdfc521fb0db932358 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    124,
 /**/
     123,
 /**/