]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.1740: warning for signed-unsigned incompatibility v8.0.1740
authorBram Moolenaar <Bram@vim.org>
Fri, 20 Apr 2018 20:48:58 +0000 (22:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 20 Apr 2018 20:48:58 +0000 (22:48 +0200)
Problem:    Warning for signed-unsigned incompatibility.
Solution:   Change type from "char *" to "char_u *". (John Marriott)

src/ex_cmds2.c
src/version.c

index c8e9785cc45a91a80a1cf5157df8f62bd59d4407..b11bff43c747f83d14ef08b1d5cfb9423cf3e2b6 100644 (file)
@@ -2751,7 +2751,7 @@ ex_args(exarg_T *eap)
         */
        if (ARGCOUNT > 0)
        {
-           char **items = (char **)alloc(sizeof(char *) * ARGCOUNT);
+           char_u **items = (char_u **)alloc(sizeof(char_u *) * ARGCOUNT);
 
            if (items != NULL)
            {
@@ -2760,7 +2760,7 @@ ex_args(exarg_T *eap)
                gotocmdline(TRUE);
 
                for (i = 0; i < ARGCOUNT; ++i)
-                   items[i] = (char *)alist_name(&ARGLIST[i]);
+                   items[i] = alist_name(&ARGLIST[i]);
                list_in_columns(items, ARGCOUNT, curwin->w_arg_idx);
                vim_free(items);
            }
index a73994b93b2f30bb71192293479b52eed15f7d44..7ebc071750ee798c32cd552362a505a13f844497 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1740,
 /**/
     1739,
 /**/