]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0881: compiler warning for argument type v8.2.0881
authorBram Moolenaar <Bram@vim.org>
Mon, 1 Jun 2020 17:14:12 +0000 (19:14 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 1 Jun 2020 17:14:12 +0000 (19:14 +0200)
Problem:    Compiler warning for argument type.
Solution:   Add type cast. (Mike Williams)

src/ops.c
src/version.c

index 14d1ed45dd3042802a0c55dcb003baa4b78eb3bb..ea71edbf3c8d8f268fc22e9f5e0379c0c60d9b73 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -2077,7 +2077,7 @@ do_join(
        currsize = (int)STRLEN(curr);
     }
 
-    ml_replace_len(curwin->w_cursor.lnum, newp, newp_len, TRUE, FALSE);
+    ml_replace_len(curwin->w_cursor.lnum, newp, (colnr_T)newp_len, TRUE, FALSE);
 
     if (setmark && !cmdmod.lockmarks)
     {
index 3a7450962e025e51e761aa058c49537ef6f98545..e4641dcf98aa6f2785416594dfc0ebb794d72f4d 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    881,
 /**/
     880,
 /**/