]> granicus.if.org Git - vim/commitdiff
patch 8.2.3355: MS-Windows: compiler warning for 64-32 bit conversion v8.2.3355
authorBram Moolenaar <Bram@vim.org>
Mon, 16 Aug 2021 19:15:32 +0000 (21:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 16 Aug 2021 19:15:32 +0000 (21:15 +0200)
Problem:    MS-Windows: compiler warning for 64-32 bit conversion.
Solution:   Add type casts.

src/memline.c
src/version.c

index f4649841fb526966b92083e1a161b160b91b978c..5aeee900f21c2b3b2f595939b9ece14377d9d396 100644 (file)
@@ -4000,7 +4000,7 @@ ml_flush_line(buf_T *buf)
                dp->db_txt_start -= extra;
 #if defined(FEAT_BYTEOFF) && defined(FEAT_PROP_POPUP)
                if (buf->b_has_textprop)
-                   old_prop_len = old_len - STRLEN(new_line) - 1;
+                   old_prop_len = old_len - (int)STRLEN(new_line) - 1;
 #endif
 
                // copy new line into the data block
@@ -4012,7 +4012,7 @@ ml_flush_line(buf_T *buf)
                {
                    // Do not count the size of any text properties.
                    extra += old_prop_len;
-                   extra -= new_len - STRLEN(new_line) - 1;
+                   extra -= new_len - (int)STRLEN(new_line) - 1;
                }
                if (extra != 0)
                    ml_updatechunk(buf, lnum, (long)extra, ML_CHNK_UPDLINE);
index eed8bb0d9619ea7481a3110d262b92374af7597e..7f1f4961586fb616347f6a23350e2fdfadd59cb2 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3355,
 /**/
     3354,
 /**/