1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2018-04-20 22:48:58 +02:00
parent 7dda86f2ff
commit 405dadb63e
2 changed files with 4 additions and 2 deletions

View File

@@ -2751,7 +2751,7 @@ ex_args(exarg_T *eap)
*/ */
if (ARGCOUNT > 0) if (ARGCOUNT > 0)
{ {
char **items = (char **)alloc(sizeof(char *) * ARGCOUNT); char_u **items = (char_u **)alloc(sizeof(char_u *) * ARGCOUNT);
if (items != NULL) if (items != NULL)
{ {
@@ -2760,7 +2760,7 @@ ex_args(exarg_T *eap)
gotocmdline(TRUE); gotocmdline(TRUE);
for (i = 0; i < ARGCOUNT; ++i) 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); list_in_columns(items, ARGCOUNT, curwin->w_arg_idx);
vim_free(items); vim_free(items);
} }

View File

@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1740,
/**/ /**/
1739, 1739,
/**/ /**/