changeset 13736:f340b53422c2 v8.0.1740

patch 8.0.1740: warning for signed-unsigned incompatibility commit https://github.com/vim/vim/commit/405dadb63ea2b7aa4c8c659807506a35a8a9504c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 20 22:48:58 2018 +0200 patch 8.0.1740: warning for signed-unsigned incompatibility Problem: Warning for signed-unsigned incompatibility. Solution: Change type from "char *" to "char_u *". (John Marriott)
author Christian Brabandt <cb@256bit.org>
date Fri, 20 Apr 2018 23:00:06 +0200
parents a62eeee5f116
children bb4cca5498a4
files src/ex_cmds2.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -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);
 	    }
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1740,
+/**/
     1739,
 /**/
     1738,