Skip to content

Commit 405dadb

Browse files
committed
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)
1 parent 7dda86f commit 405dadb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ex_cmds2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,7 +2751,7 @@ ex_args(exarg_T *eap)
27512751
*/
27522752
if (ARGCOUNT > 0)
27532753
{
2754-
char **items = (char **)alloc(sizeof(char *) * ARGCOUNT);
2754+
char_u **items = (char_u **)alloc(sizeof(char_u *) * ARGCOUNT);
27552755

27562756
if (items != NULL)
27572757
{
@@ -2760,7 +2760,7 @@ ex_args(exarg_T *eap)
27602760
gotocmdline(TRUE);
27612761

27622762
for (i = 0; i < ARGCOUNT; ++i)
2763-
items[i] = (char *)alist_name(&ARGLIST[i]);
2763+
items[i] = alist_name(&ARGLIST[i]);
27642764
list_in_columns(items, ARGCOUNT, curwin->w_arg_idx);
27652765
vim_free(items);
27662766
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1740,
764766
/**/
765767
1739,
766768
/**/

0 commit comments

Comments
 (0)