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)
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index c8e9785..b11bff4 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2751,7 +2751,7 @@
*/
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 @@
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);
}
diff --git a/src/version.c b/src/version.c
index a73994b..7ebc071 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1740,
+/**/
1739,
/**/
1738,